Member
Member
ctdlg   2022-05-02, 18:47
#1

Hello,

Installing 1.6.a from scratch gives an error on my localhost machine :

Parse error: syntax error, unexpected 'version' (T_STRING) in /16a/index.php on line 37.

16a is the folder that contains Zenphoto 1.6.a.

Here is line 37 :
?>

Do we need php 8 to run it (currently using php 7.4)

Administrator
Administrator
acrylian   2022-05-03, 05:01
#2

No, 1.6a should run on PHP 7+ and does for me actually.

?>

I can only assum that the `are mistaken for PHP closing tags. Does your server have PHP short tags (

Member
Member
ctdlg   2022-05-03, 12:16
#3

Yes,
short_open_tag On
info given in phpinfo.php page.
Using PHP7.4.27 under archlinux, Xampp on my localhost computer.
I did replace

Same blank page.

Console shows this error :
Cette page est en mode de compatibilité (quirks). La mise en page peut en être affectée. Pour le mode standard, utilisez «

Administrator
Administrator
acrylian   2022-05-03, 12:36
#4

Sorry, don't understand it, that is the standard RSS placeholder and is not used unless RSS is requested…

Do you have any placeholder files within /plugins/site_upgrade/? If so you should not even reach that line…

Administrator
Administrator
acrylian   2022-05-03, 15:58
#5

Another thing to look at: Is your config file correct? THe way of loading it has changed as well. Formerly it was read as a text file and then eval'ed, now directly via require_once since it is of course already a PHP file.

Member
Member
ctdlg   2022-05-03, 16:00
#6

1 I download your Zenphoto zip file
2 I decompress it on a localhost folder
3 I enter this folder
4 I get the above error, line 37, index.php file.

5 I tried editing your index.php file : error or blank page, Firefox console gives some information (above) (written in French)
Translation :
Diese Seite befindet sich im Kompatibilitätsmodus (Macken). Das Layout kann beeinträchtigt werden. Verwenden Sie für den Standardmodus "

You could try a new install from scratch as I did !

Administrator
Administrator
acrylian   2022-05-03, 16:26
#7

Thanks for the translation, I did understand your Firefox is somehow in Quirks mode. Still don't get why.

Is you config file created correctly btw or don't you get that far at all?

I will try a fresh install for sure later on.

Member
Member
ctdlg   2022-05-03, 18:18
#8

You cannot open any page ! (error with root index.php file.)
config file can only be created if you can display 1st admin page.

Administrator
Administrator
acrylian   2022-05-04, 05:27
#9

You can of course also manually create the config file by using the template from zp-core. But we can reproduce some issues with a fresh install and try to solve it. There is a reason this is alpha status ;-)

Member
Member
ctdlg   2022-05-04, 05:56
#10

I understand the alpha status, of course.

I did try on my online website.
Same problem.

I do not need to install 1.6.a, I just want to help a little.
This is why I tried from scratch.

Administrator
Administrator
acrylian   2022-05-04, 06:57
#11

Of course and I appreciate the tests and help!

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