New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mobile album photo view in 13.1.0 not working anymore due to syntax error in footer.tpl in smartpocket theme (with PHP 7.x) #1766
Comments
I checked the footer template in So I reverted this commit Piwigo/piwigo-smartpocket@1e948e4 . The template error is gone and all photos are showing properly. |
I tried this syntax: |
This part
|
Tested my patch (#1766 (comment)) also on PHP 8 - works so far. I created a PR |
Any work around in the meantime? |
Sure, try the patch of the pull request mentioned and give feedback whether it works for you. Or try the change of my previous comment. One of them should work. Or replace that line with the old code as mentioned above in #1766 (comment) . |
The patch of the pull request works for me and my PHP 7.4.32. |
I'm not convinced of that approach, see my comment at the patch Piwigo/piwigo-smartpocket#8 (comment) . |
@erAck @bigcookie have you tested the commit pushed by @MatthieuLP ? Piwigo/piwigo-smartpocket@738dcde |
@plegall @MatthieuLP yes that works, thanks! |
I don't have a phone with this problem but my friend says the site is now working for her. |
@plegall the patch from @MatthieuLP works for me. |
Hello,
i updated to 13.1.0 recently, but the photo view inside an album is not working anymore. Thrown error in GUI:
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "file:/var/www/vhosts/xxxx/xxxx/themes/smartpocket/template/footer.tpl" on line 20 "document.cookie = 'screen_size='+jQuery(document).width()+'x'+jQuery(document).height()+';path={isset($COOKIE_PATH) ? $COOKIE_PATH : ''}';" - Unexpected " ? ", expected one of: "}" <-- thrown in /var/www/vhosts/xxxx/xxxxx/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 20
Standard view works fine. Albums are still listed on mobile, but when opening an album, no photos are shown and the error is listed at the bottom of the page
The text was updated successfully, but these errors were encountered: