Config printed at the top of setup page?

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?

Comments

  • does the config file begin with `<?php`?

    It should. If not then it would get displayed as you describe. However, if it was really removed then the newly made copy would begin with that string.

    Maybe there is a file permissions issue so that it is not seen or removed.
  • What should be the permissions for the files in the zp-data folder?
  • And yes, I have a zenphoto.cfg.php and a zenphoto.cfg.php.bak, with 600 and 666 permissions.

    The .php has the <?php at the beginning and ?> at the end.
    The .bak doesn't have these and is slightly different in content.
  • No idea, then. With the `<?php ....?>` around the content there is no way that it should be showing up on the page.
  • 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
  • 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)...
  • All hell has broken loose!

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

    http://mstratforddesign.co.uk/images/Page2.jpg
  • 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
  • acrylian Administrator, Developer
    What does the error log say? I bet there is something about permissions in there.
  • 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!
  • 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 :(
  • New database fixed it :)

    Now here comes the long road back to civilisation...
  • 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.
  • When should you Backup/Restore a database ?
  • acrylian Administrator, Developer
    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.

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

    Please don't mix rather unrelated topics.
Sign In or Register to comment.