Problems, need help? Have a tip or advice? Post it here.
7 posts Page 1 of 1
Hey,

This topic has been discussed a few times, but the reported solving doesn't work.

I'm trying out CouchCMS with a simple site hosted on 000webhosting.
After the setup CouchCMS doesn't load and instead displays a plain html document in the browser.

I've read that it is because of the encoding in confic.php so I downloaded it and saved it with Notepad++ as UTF-8 without BOM, but this doesn't seem to solve the problem.
Hi,

Could you please take a look at the HTML code and try to see if 000webhosting has not 'injected' any markup of its own (usually advertisements) in there that could causing this?
KK wrote: Could you please take a look at the HTML code and try to see if 000webhosting has not 'injected' any markup of its own (usually advertisements) in there that could causing this?


The html that loads doesn't seem to have any injected markup I found.
This is the html that loads: https://pastebin.com/Pd5d7uXu
If it is ok with you to grant me access to your site, I can take a look at this issue for you.
If yes, please PM me the FTP+Couch creds.
Thanks for the creds.

I had a look and found that the Couch login page was loading ok - *but* there was this advertisement tacked at its bottom -
Code: Select all
<div style='text-align: right;position: fixed;z-index:9999999;bottom: 0; width: 100%;cursor: pointer;line-height: 0;'><a title="Hosted on free web hosting 000webhost.com. Host your own website for FREE." target="_blank" href="https://www.000webhost.com/?utm_source=000webhostapp&utm_campaign=000_logo&utm_medium=website&utm_content=footer_img"><img src="https://cloud.githubusercontent.com/assets/23024110/20663010/9968df22-b55e-11e6-941d-edbc894c2b78.png"  alt="www.000webhost.com"></a></div>

As suspected, 000webhost.com is not going to let you use its services for free without introducing some elements of its own.

Anyway, moving ahead by entering the admin creds, the ensuing page did appear in its HTML source form just as you reported.

Since the login page was loading fine but this page had this problem, I could only conclude that it was not the UTF BOM issue discussed in other threads (it would have affected every page).

I cannot say it for sure, but I can only suspect that 000webhost.com was trying to inject its code into the problem page also but somehow failed and messed everything.

There were no templates registered with Couch yet so I couldn't test the other admin template pages.
To do that, I took the liberty of registering the index.php in your site's root.

After doing that, after login Couch redirects to this template section (i.e. the original problem page is not loaded) and this section now loads fine, as far as I can see.

And, yes, it also has the tacked on 000webhost.com footer.

For now things seem to be ok. You'll have to test further to see how long this holds up before something from 000webhost.com breaks things again.

I'd advice you to move to a better host that does not mess with your markup, if possible.

Hope it helps.
Thanks for your help.

Surely I'm moving to a paid host soon. I just wanted to test out couch before implementing it in other sites.
And if I understood right, you "fixed" it by giving couch a page that's editable?
That's correct - I only added one template ('index.php') to Couch admin.
7 posts Page 1 of 1