Member
Member
Ipstenu   2013-10-03, 05:55
#1

Upgraded yesterday to 1.4.5.4

Changed my SQL User ID and password (unrelated reasons)

I can upload images and create folders, but I cannot save any album or image info. Hitting save wipes out ALL the info.

I'm able to rename folders, but the album info is not saving.

Debug log on ZP is blank, but my PHP error log is filled with this:

`[Wed Oct 02 22:51:22 2013] [error] [client IP] PHP Parse error: syntax error, unexpected '

Member
Member
Ipstenu   2013-10-03, 06:02
#2

Finally managed to get something that looks errorish...

[Wed Oct 02 23:00:28 2013] [error] [client IP] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/gallery/zp-core/functions-basic.php(113) : eval()'d code:101) in /home/public_html/gallery/zp-core/index.php on line 117, referer: http://domain.com/gallery/zp-core/admin-edit.php?page=edit&album=foo%2Fbar&tab=albuminfo

Member
Member
Ipstenu   2013-10-03, 06:11
#3

Ah and now I have debug errors:

{12515:Thu, 03 Oct 2013 06:00:28 GMT} Zenphoto v1.4.5.4[feb2ded8f0f1ca042f630e26601126635688e24d] WARNING: Cannot modify header information - headers already sent by (output started at /home/public_html/gallery/zp-core/functions-basic.php(113) : eval()'d code:101) in /home/public_html/gallery/zp-core/index.php on line 117 header called from include (index.php [117]) from index.php [15] {12515:Thu, 03 Oct 2013 06:00:28 GMT} WARNING: Cannot modify header information - headers already sent by (output started at /home/public_html/gallery/zp-core/functions-basic.php(113) : eval()'d code:101) in /home/public_html/gallery/zp-core/index.php on line 118 header called from include (index.php [118]) from index.php [15] {12515:Thu, 03 Oct 2013 06:00:28 GMT} WARNING: Cannot modify header information - headers already sent by (output started at /home/public_html/gallery/zp-core/functions-basic.php(113) : eval()'d code:101) in /home/public_html/gallery/zp-core/index.php on line 119 header called from include (index.php [119]) from index.php [15] {12515:Thu, 03 Oct 2013 06:00:28 GMT} WARNING: Cannot modify header information - headers already sent by (output started at /home/public_html/gallery/zp-core/functions-basic.php(113) : eval()'d code:101) in /home/public_html/gallery/zp-core/index.php on line 120 header called from include (index.php [120]) from index.php [15]
Sorry about the trip post :/

Member
Member
Ipstenu   2013-10-03, 07:00
#4

Can I go kick myself?

My end. SQL was a ... baQa'

I can edit now. I still get this though:

`
[Wed Oct 02 22:51:22 2013] [error] [client IP] PHP Parse error: syntax error, unexpected '

Administrator
Administrator
acrylian   2013-10-03, 08:22
#5

Please take a look at the root index.php file. Is there possibly a blank first line? That should not be there or a blank line after the closing ?> statement at the end?

If so somehow your index file got corrupted. Try a reupload of that file. Otherwise I have no idea.

Member
Member
Ipstenu   2013-10-03, 15:09
#6

No blank line in index.php, though closing PHP tags aren't absolutely required by PHP. While it twitches my OCD a LOT, maybe it'd be a good idea to drop them entirely so it's a non-issue with core files?

Administrator
Administrator
acrylian   2013-10-03, 16:06
#7

I leave it to the chief dev to decided if we drop the closing php tag which is indeed not strictly needed.

I can only assume you have some 3rd party tool interfering.

Member
Member
sbillard   2013-10-03, 17:17
#8

The index.php PHP error is unrelated (but a bug that will get fixed).

Member
Member
Ipstenu   2013-10-03, 20:01
#9

I'm not sure why sometimes the db does that. I find if I save settings and then edit it's okay. Very odd, and happens with the default theme and no plugins.

When did we switch to storing serialized data for the album info?

Member
Member
sbillard   2013-10-03, 20:10
#10

Quote:When did we switch to storing serialized data for the album info?
Not sure what you are referencing here. If it is text fields in the album, they have always had the possibility of being serialized arrays since we have allowed multi-lingual handling.

BTW, none of the errors you have shown would impact the back-end.

Member
Member
Ipstenu   2013-10-03, 21:09
#11

Okay, I've never seen the text fields be serialized until recently. My site is one language (English) and it always just put the text in plain text. Now it's encoded and said en_US which makes sense when you talk about multi-lingual handling (and is BRILLIANT by the way!) but I don't remember ever turning it on

Administrator
Administrator
acrylian   2013-10-03, 21:12
#12

It's been that way since at least 1.4.4 (don't remember). This way you won't loose multilingual content if you turn it off anymore.

Member
Member
sbillard   2013-10-03, 22:02
#13

Depending on the fields, the ability for multi-lingual can be turned off. But best practice is to use the get_language_string() function to retrieve the data. This works whether the data is a serialized array or a simple text entry.

Member
Member
Ipstenu   2013-10-03, 22:38
#14

Can it be turned off globally? (Not that I'm not thinking about the future, but I'm being realistic fot this site )

Member
Member
sbillard   2013-10-03, 23:04
#15

No, it is an option by option setting.

However, things will work if you directly edit the database to be a single entry.

Member
Member
Ipstenu   2013-10-03, 23:29
#16

Which means my script to do that and mass-edit images will work. Good enough for me.

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