ZenphotoCMS Forum
Config printed at the top of setup page? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Config printed at the top of setup page? (/thread-11564.html)



Config printed at the top of setup page? - mstratford - 2014-01-02

Trying to upgrade to the latest version from 1.4.5.1 to 1.4.5.8, I have found that my config is printed at the top of the setup page?

I have deleted the files in the zp-data folder and tried again, but this still happens and I get this same problem when loading any page past this...

Any ideas?




Config printed at the top of setup page? - sbillard - 2014-01-02

does the config file begin with `




Config printed at the top of setup page? - mstratford - 2014-01-02

What should be the permissions for the files in the zp-data folder?




Config printed at the top of setup page? - mstratford - 2014-01-02

And yes, I have a zenphoto.cfg.php and a zenphoto.cfg.php.bak, with 600 and 666 permissions.

The .php has the at the end.
The .bak doesn't have these and is slightly different in content.




Config printed at the top of setup page? - sbillard - 2014-01-02

No idea, then. With the `` around the content there is no way that it should be showing up on the page.




Config printed at the top of setup page? - mstratford - 2014-01-02

The code it is showing looks more like the .bak file to me...
The actual extra text begins with "; MySQLi and also ends with another error:

Warning: Cannot modify header information - headers already sent by (output started at /home/u538472778/public_html/newgallery/zp-core/functions-basic.php(114) : eval()'d code:103) in /home/u538472778/public_html/newgallery/zp-core/setup/index.php on line 379




Config printed at the top of setup page? - mstratford - 2014-01-02

After the Graphics support: PHP GD library bundled (2.0.34 compatible) message, on a new line:

"; MySQLi

Shows again, and again after Third party plugins folder (plugins)...




Config printed at the top of setup page? - mstratford - 2014-01-02

All hell has broken loose!

On the next setup page, I get 3 errors seen here...

http://mstratforddesign.co.uk/images/Page2.jpg




Config printed at the top of setup page? - mstratford - 2014-01-02

Then on the homepage, the page title in the head is an error message and my page title are messed up like this... http://mstratforddesign.co.uk/images/Homepage.jpg




Config printed at the top of setup page? - acrylian - 2014-01-02

What does the error log say? I bet there is something about permissions in there.




Config printed at the top of setup page? - mstratford - 2014-01-02

I reuploaded everything, but kept the database... The frontend on every theme is still all over the place. Setup worked properly this time. Backend is nearly fixed, apart from some weird things regarding arrays, see http://mstratforddesign.co.uk/images/Backend1.png. (The view site button top right, the selector and the green text).

Setup.log:

Zenphoto Setup v1.4.5.8[676d2dec8b]: Thu, 02 Jan 2014 15:52:11 -0500
Query error: MySQLi not connected
Warn: zp-data security [is compromised] Zenphoto suggests you make the sensitive files in the zp-data folder accessable by owner only (permissions = 0600). The file permissions for security.log are 0640 which may allow unauthorized access.
Warn: PHP version 5.3.24 PHP Version 5.2 or greater is required. Version 5.4 or greater is strongly recommended. Use earlier versions at your own risk.
Warn: PHP display_errors [is enabled] This setting may result in PHP error messages being displayed on WEB pages. These displays may contain sensitive information about your site.

Debug.log is full of stuff, probably not best to paste here I can email it if it is better!




Config printed at the top of setup page? - mstratford - 2014-01-02

Something tells me that the database is toast, there seem to be arrays all over the place in random rows and columns, I think a new database will be required




Config printed at the top of setup page? - mstratford - 2014-01-02

New database fixed it

Now here comes the long road back to civilisation...




Config printed at the top of setup page? - abelonezone - 2014-01-11

I got the Same log as MStratford ! I got over 1600 spam comments on my images from Korea I've been looking for a place to change zp_data to 0600? I am so confused by all this computer code ! Can Koreans hack my site ? I use Wordfence and try blocking them.




Config printed at the top of setup page? - abelonezone - 2014-01-11

When should you Backup/Restore a database ?




Config printed at the top of setup page? - acrylian - 2014-01-11

I am not sure I understand what the spam comments have to do with the acutal issue of this topic?

If you get a lot spam comments you most likely have no spam filter installed. See the extensions page.

zp_data's permissions need to be change via FTP directly.

[i]When should you Backup/Restore a database ?[/i]
Backup are recommended regular (each day is good generally). Restore of course when you need it.

Please don't mix rather unrelated topics.