ZenphotoCMS Forum
1.6.a install problem - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: 1.6.a install problem (/thread-13720.html)



1.6.a install problem - ctdlg - 2022-05-02

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)




1.6.a install problem - acrylian - 2022-05-03

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 (




1.6.a install problem - ctdlg - 2022-05-03

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 «




1.6.a install problem - acrylian - 2022-05-03

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…




1.6.a install problem - acrylian - 2022-05-03

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.




1.6.a install problem - ctdlg - 2022-05-03

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 !




1.6.a install problem - acrylian - 2022-05-03

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.




1.6.a install problem - ctdlg - 2022-05-03

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




1.6.a install problem - acrylian - 2022-05-04

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




1.6.a install problem - ctdlg - 2022-05-04

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.




1.6.a install problem - acrylian - 2022-05-04

Of course and I appreciate the tests and help!