Announcement

#1 2019-01-20 21:10:46

klinsinow
Member
2019-01-20
3

Parse Error on Upgrade and Plugin install

Hello,

I'm having difficulties with Piwigo after years of no issues. Last week, I tried to upgrade from 2.9.2 to 2.9.4 and it caused the website to stop functioning completely. Blank page with no errors and no way to fix or login as admin except to override all Piwigo files back to 2.9.2 through FTP. After I figured out that method everything appeared to be functioning normally. Not sure if there was another repair I should have tried after I gained access to admin page. Now, I just tried installing plugin for moving files "physical_photo_move" and again caused an error which has locked me out of the page.

This time a message appears on page my homepage instead of content:

Parse error: syntax error, unexpected '[' in /home2/jeffspho/public_html/plugins/physical_photo_move/include/functions.inc.php on line 102

Other errors in my error log on bluehost:
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/php70/lib/php/extensions/no-debug-non-zts-20151012/mailparse.so' - /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/mailparse.so: undefined symbol: zend_new_interned_string in Unknown on line 0


This one below is similar to error after trying to upgrade to 2.9.4 last week. At the time I was on PHP version 5 and so upgraded to 7 thinking that would help (which it didn't, only overriding install files worked)
PHP Parse error: syntax error, unexpected T_FUNCTION in /home2/jeffspho/public_html/include/dblayer/functions_mysqli.inc.php on line 403


Piwigo version: 2.9.2
PHP version: 7.0.33
MySQL version: 5.6.41-84.1
Apache: 2.2.34
Perl: 5.26.0
Using Bluehost as server
Piwigo URL: http://www.jeffsphotojournal.com


Only recourse I see again is to override files within the include folder and plugin folder with base install of 2.9.2.

No plugin changes lately, however here is list of plugins I have:
AdminTools
AStat
Community
download_permissions
EasyCaptcha
FacebookPlug
Fotorama
GrumPluginClasses
GuestBook
language_switch
LocalFilesEditor
oAuth
Panoramas
PayPalShoppingCart
physical_photo_move (NEW, however similar issue when trying to upgrade to 2.9.4)
piclens
piwigo-jplayer
piwigo-videojs
Preload
ProtectedAlbums
PWG_Stuffs
rv_autocomplete
ShareThis
SmartAlbums
stop_spammers
TakeATour
UserCollections

Offline

 

#2 2019-01-21 00:43:54

erAck
Member
2015-09-06
158

Re: Parse Error on Upgrade and Plugin install

klinsinow wrote:

Parse error: syntax error, unexpected '[' in /home2/jeffspho/public_html/plugins/physical_photo_move/include/functions.inc.php on line 102
PHP Parse error: syntax error, unexpected T_FUNCTION in /home2/jeffspho/public_html/include/dblayer/functions_mysqli.inc.php on line 403

I'd try to deactivate those plugins before upgrading.

Other errors in my error log on bluehost:
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/php70/lib/php/extensions/no-debug-non-zts-20151012/mailparse.so' - /opt/php70/lib/php/extensions/no-debug-non-zts-20151012/mailparse.so: undefined symbol: zend_new_interned_string in Unknown on line 0

This is unrelated to Piwigo. For problems with the Zend framework talk to your hoster.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2019-01-22 06:55:38

klinsinow
Member
2019-01-20
3

Re: Parse Error on Upgrade and Plugin install

Thanks for the reply. The physical_photo_move was a plugin I tried installing after the upgrade to 2.9.4 issue first occurred. So it shouldn't be root cause of issue. I'm doing some organization, so thought I would try plugin after install was stable again on 2.9.2.

Isn't the "functions_mysqli.inc.php" piwigo code? It's in the include folder and not plugins. The T_FUNCTION syntax error regarding on line 403 is identical to original error after I tried to auto upgrade to 2.9.4 first time around. 

Interesting tidbit is that I upgraded PHP server version to 7.0.33, however according to Piwigo status it is still on 5.2.17. Not sure if that could present an issue.

Maintenance Screen within Piwigo
    Piwigo 2.9.2
    Operating system: Linux
    PHP: 5.2.17 (Show info) [2019-01-21 22:47:36]
    MySQL: 5.6.41-84.1 [2019-01-21 22:47:36]
    Graphics Library: External ImageMagick 6.7.9-10


Thanks

Offline

 

#4 2019-01-22 22:39:22

erAck
Member
2015-09-06
158

Re: Parse Error on Upgrade and Plugin install

klinsinow wrote:

Isn't the "functions_mysqli.inc.php" piwigo code? It's in the include folder and not plugins.

Yes, I got that confused.

However, now that you mention "upgraded PHP server version to 7.0.33, however according to Piwigo status it is still on 5.2.17" those errors probably make sense. PHP 5.2 is years outdated and really should not be used. Might be the functions Piwigo tries to call weren't known back then. Talk to your hoster what's going wrong with your PHP versions.

Last edited by erAck (2019-01-22 22:40:11)


Running Piwigo at https://erack.net/gallery/

Offline

 

#5 2019-01-24 02:03:02

windracer
Member
St. Pete, FL
2014-12-28
223

Re: Parse Error on Upgrade and Plugin install

Physical Photo Move is my plugin. I've seen that error before ([Github] Piwigo-physical_photo_move issue #6) and it was related to the version of PHP installed on your Piwigo server (as erAck pointed out above). The user who reported the problem was running PHP 5.3 and upgrading to 5.6 resolved the issue.

Here are the versions I'm running:

Piwigo 2.9.4
Operating system: Linux
PHP: 7.2.10-0ubuntu1
MySQL: 5.7.24-0ubuntu0.18.10.1
Graphics Library: External ImageMagick 6.9.10-8

Last edited by windracer (2019-01-24 02:04:52)

Offline

 

#6 2019-01-24 05:09:43

klinsinow
Member
2019-01-20
3

Re: Parse Error on Upgrade and Plugin install

Upgrading to PHP 7.0.33 did the trick! Now I'm on newest version of Pwigo.

Had Bluehost support perform upgrade as I couldn't find any reason why the upgrade to 7.0.33 wasn't complete within Piwigo. Working now!

Thanks for your help.

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact