Member
Member
mstratford   2014-01-02, 16:02
#1

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?

Member
Member
sbillard   2014-01-02, 18:58
#2

does the config file begin with `

Member
Member
mstratford   2014-01-02, 19:07
#3

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

Member
Member
mstratford   2014-01-02, 19:12
#4

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.

Member
Member
sbillard   2014-01-02, 19:16
#5

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

Member
Member
mstratford   2014-01-02, 19:32
#6

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

Member
Member
mstratford   2014-01-02, 19:33
#7

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)...

Member
Member
mstratford   2014-01-02, 19:43
#8

All hell has broken loose!

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

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

Member
Member
mstratford   2014-01-02, 19:45
#9

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

Administrator
Administrator
acrylian   2014-01-02, 21:37
#10

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

Member
Member
mstratford   2014-01-02, 22:05
#11

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!

Member
Member
mstratford   2014-01-02, 22:38
#12

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

Member
Member
mstratford   2014-01-02, 22:58
#13

New database fixed it

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

Member
Member
abelonezone   2014-01-11, 11:20
#14

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.

Member
Member
abelonezone   2014-01-11, 11:22
#15

When should you Backup/Restore a database ?

Administrator
Administrator
acrylian   2014-01-11, 11:46
#16

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.