• Resolved osositno

    (@osositno)


    Hi
    I keep getting fatal error in Woo>Status>Logs >Fatal Error logs.

    Uncaught TypeError: property_exists(): Argument #1 ($object_or_class) must be of type object|string, int given in /websites/xxxxxxxxxx/www/html/wp-content/plugins/insert-pages/insert-pages.php:335

    Any tips on how to get rid of this?

    Regards

    ososit

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter osositno

    (@osositno)

    We also had issues with another plugin called Product Feed PRO for WooCommerce, version 13.3.8.1 from AdTribes.io. The feeds in this plugin did not complete and were stuck at 0% when Insert Pages plugin was active.

    Plugin Author Paul Ryan

    (@figureone)

    Thanks, for whatever reason the global $post in that context is the post ID instead of a WP_Post object. We’ll deploy the fix below in the next released version, but in the meantime feel free to modify the code on your server to confirm it fixes the issue!

    https://github.com/uhm-coe/insert-pages/commit/773cbf908af2036e4ae57d2895b060ead58133e5

    Plugin Author Paul Ryan

    (@figureone)

    Aloha, version 3.9.0 is now out with this fix. Please let us know if you notice any issues. Cheers

    Thread Starter osositno

    (@osositno)

    Hi.

    After installing the versjon 3.9.0, fatal error reappears. Now with a different line number: 2024-10-31T07:14:01+00:00 Kritisk Uncaught Error: Attempt to assign property “ID” on int in /websites/xxxxxx/www/html/wp-content/plugins/insert-pages/insert-pages.php:537

    Plugin Author Paul Ryan

    (@figureone)

    Can you check that line number again from your logs? Line 537 doesn’t touch $post->ID, it’s just a comment line: https://github.com/uhm-coe/insert-pages/blob/master/insert-pages.php#L537

    Thread Starter osositno

    (@osositno)

    My bad. Sorry. The fatal error was before the update ?? No more fatal error since the update.

    All is good now it seems ?? Thanks for your support.

    Plugin Author Paul Ryan

    (@figureone)

    Gotcha ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.