![]() |
|
can't use ' on pages page - 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: can't use ' on pages page (/thread-13729.html) |
can't use ' on pages page - cstorry - 2022-06-26 I've got a working site with zenphoto 1.5.9 (and zpBootstrap 2.3.2) - Thanks by the way, I love the tool I have 3 warnings in the setup log I can't seem to use apostrophe ' in any text on zenpages pages. If I do the page is rendered blank wherever the ' is on the page The header prints OK but the footer does not This is what is in the debug log EXCEPTION (0): Call to undefined function ctype_digit() in /hermes/bosnaweb24a/b1630/nf.italiancarclubottawa/public_html/icco22/zp-core/lib-htmLawed.php on line 328 I would appreciate a pointer in where to look Same issue for photo album title or description and same debug log message Thanks can't use ' on pages page - acrylian - 2022-06-26
Yes, because your server apparently does not have these native PHP extensions installed. gettext ist only needed if you want to use other languages than the native English or a multilingual site. The other two are not required. htmlawed is a third party tool we use. You will need to ask your host about these.
Please try an included theme to rule out this is an issue with zpBootstrap. But this may also a downstream issue of the above issue. Btw, can't use ' on pages page - cstorry - 2022-06-26 I get the same result by selecting the following themes; Garland, Zenpage, ZpMobile and ZpBootstrap. I happen to have an earlier version of Zenpage I installed for some testing about 2 years ago (version 1.4.14) running on the same server side by side with the new one and there is no issue with using ' on zenpages or in album titles or photo titles. Should I try new installation of ZP beside these 2 and see it it fails on clean install with nothing (themes or plug-ins) added? can't use ' on pages page - acrylian - 2022-06-26 If you have a new install already that should not really make any difference. Do you have the tinymce4 editor enabled? If not please do and try the apostrophe so as that does some extra escaping of character. Generally the PHP extension tidy and htmlawed are used to escape and fix unwanted/broken HTML. I cannot really say if these are downstream issues as all servers I have access to have all that is needed, especially the cytype_digit() is rather part of a standard install of PHP. can't use ' on pages page - acrylian - 2022-06-26 Just to add the undefined function will be the general issue so you will have your host fix that. Also make sure that you are not using PHP 8 yet. can't use ' on pages page - cstorry - 2022-06-26 PHP version 7.4.10 Yes tinymce4 for editing pages but also fails when using ' in a photo title or description of an album or photo (maybe tinymce is used there?) I can only say 1.4.14 works on same server using same php, etc. I can ask to have the other functions added but will take some time I suppose - it is a public webhosting service. I notice in my older ZP 1.4.14 setup logs that not warnings were issued. I suppose an older version of PHP was active on the server at that time (but I don't know which one - it was not reported in the setup log). Is there some other way to find that info in the old zenphoto directories? I do have the option to configure my login to use different versions of PHP (5.3, 5.5, 5.6, 7, 7.1, 7.2, 7.3 and 7.4). I expect going back to version 5 is not a good idea but I could try earlier versions of 7 if you think that might help (maybe they are more complete ? Do I need to run setup each time I change a version of PHP? Thanks can't use ' on pages page - acrylian - 2022-06-26
Well, 1.4.14 is from 2017 so a few things changed and so did the are this libarary is used. You need to contact your host about the missing extension. https://www.php.net/manual/de/book.ctype.php as I am sure that is causing the problem. You will get this with every new version. And PHP 5 is not a good idea, especially since 1.5.9 will be the last supporting it.
What does that mean? A free one? I really recommend to invest a few euros per month to get proper webhosting.
Yes, it will always request that because it needs to update the internal install signature. can't use ' on pages page - cstorry - 2022-06-26 Ok - I mean that it is a paid service so they do not make changes to things like PHP support easily as it could have impact on many customers. Let me find out why these extensions are not present Let’s hope that fixes it Thanks can't use ' on pages page - acrylian - 2022-06-26 Okay, I understand. Let us know. can't use ' on pages page - cstorry - 2022-06-28 All good now. The problem was indeed the lack of support for ctype_digit(). They added this and I am now able to use ' everywhere I needed to. I also learned how to use phpinfo and was able to convince them that in fact gettext, tidy and bz2 were missing - they added these and I can see them all supported now with phpinfo (along with ctype_digit) I re-ran the setup and the warnings all disappeared. So - good news - no issues with zenphoto - just a server issue. Thanks for your patience and a great tool ! can't use ' on pages page - acrylian - 2022-06-28 Great, seems you have a good host at hand! |