• Resolved raychan87

    (@raychan87)


    I use the code,

    [gallery wplr-collection="98,108,102,100,99,106,104,107,103,105,144,145,146" orderby="date"]

    to display my current photos. Unfortunately this only works with Meow Gallery v4. From version 5 I get a PHP error. Unfortunately I do not get it displayed.

    Is this code not allowed anymore?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Val Meow

    (@valwa)

    Hey @raychan87! ??

    Could you please provide more information about the PHP error? You can find additional details in your PHP logs. If you don’t feel comfortable sharing them online, you can connect with me directly through our support platform. ??

    Thread Starter raychan87

    (@raychan87)

    Hello,

    this is in the PHP debug log.

    [14-Dec-2023 17:40:58 UTC] PHP Deprecated: Creation of dynamic property Osm::$localizionName is deprecated in /volume1/web/wordpress/wp-content/plugins/osm/osm.php on line 237
    [14-Dec-2023 17:40:59 UTC] PHP Deprecated: ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in /volume1/web/wordpress/wp-includes/formatting.php on line 4494
    [14-Dec-2023 17:41:02 UTC] PHP Deprecated: Creation of dynamic property Osm::$localizionName is deprecated in /volume1/web/wordpress/wp-content/plugins/osm/osm.php on line 237
    [14-Dec-2023 17:41:02 UTC] PHP Deprecated: ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in /volume1/web/wordpress/wp-includes/formatting.php on line 4494
    [14-Dec-2023 17:41:03 UTC] [MEOW GALLERY] Regex: Backtrack limit exhausted (Code 2)

    Thread Starter raychan87

    (@raychan87)

    Hallo @valwa,

    I have found the error, perhaps you can help me.
    There are probably too many photos being displayed.

    If instead of :

    [gallery wplr-collection="98,108,102,100,99,106,104,107,103,105,144,145,146" orderby="date"]

    that:

    [gallery wplr-collection="98,108,102,100,99,106,104" orderby="date"]

    all photos are still displayed.

    Is there a way to set that only the newest photos up to a certain number can be displayed? For example. limit to 50 of the latest photos, from all my galleries.

    I would be very happy about that. Many thanks in advance.

    Plugin Support Val Meow

    (@valwa)

    Hey?@raychan87! ??

    [MEOW GALLERY] Regex: Backtrack limit exhausted (Code 2)

    WordPress verifies the HTML of loaded pages to convert content with text smilies to images. To achieve this, WordPress uses an “ungreedy” regular expression. The use of the “ungreedy” parameter causes the backtrack limit to be exhausted quickly, especially when dealing with long strings. This becomes apparent, for example, when processing a gallery with over 500 meta data entries simultaneously. If you manually remove this “ungreedy” parameter, the process works as intended.

    Since modifying WordPress files is not recommended as updates will erase changes, you can address this issue by adjusting the backtrack limit in your PHP settings. To do this, add the following line to your php.ini file:

    pcre.backtrack_limit=1000000000

    .It’s essential to exercise caution when increasing the backtrack limit, and for this particular use case, it might be more suitable to use features such as infinite loading or pagination, as you’re already doing.

    If you have the Pro version of the gallery, I recommend using the Infinite scroll feature. You won’t need to modify anything in your PHP files as this feature will handle loading the gallery by batches instead of everything in one go, removing this error completely. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Meow Gallery Error from v5’ is closed to new replies.