can't use ' on pages page

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
PHP gettext not supported
PHP tidy not supported
PHP bz2 not supported

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
{30422:Sun, 26 Jun 2022 04:38:10 GMT} Zenphoto v1.5.9

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
Chuck

Comments

  • acrylian Administrator, Developer
    edited June 2022

    I have 3 warnings in the setup log
    PHP gettext not supported
    PHP tidy not supported
    PHP bz2 not supported

    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. cytype_digit() appears to be a function from a native PHP extension named Cytype:
    https://www.php.net/manual/de/book.ctype.php
    According to https://www.php.net/manual/en/extensions.membership.php this is a bundled extension so should be available. So the same applies as above.

    You will need to ask your host about these.

    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

    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, ' actually is not an real apostrophe in the typographical meaning just like "is not really a quote but the incho ;-)

  • 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?

  • acrylian Administrator, Developer
    edited June 2022

    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.

  • acrylian Administrator, Developer

    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.

  • 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

  • acrylian Administrator, Developer

    I can only say 1.4.14 works on same server using same php, etc.

    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.

    I can ask to have the other functions added but will take some time I suppose - it is a public webhosting service.

    What does that mean? A free one? I really recommend to invest a few euros per month to get proper webhosting.

    Do I need to run setup each time I change a version of PHP?

    Yes, it will always request that because it needs to update the internal install signature.

  • 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

  • acrylian Administrator, Developer

    Okay, I understand. Let us know.

  • 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 !

  • acrylian Administrator, Developer

    Great, seems you have a good host at hand!

Sign In or Register to comment.