• Resolved Bob

    (@prasunsen)


    Hello, the plugin is frequently causing this fatal error:

    ?Call to undefined method stdClass::get() in …/wp-content/plugins/searchwp-modal-search-form/includes/Plugin.php:155

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @prasunsen,

    We are not able to replicate the issue you reported.
    Can you please tell me how the Modal form was added to the site and when that error appears. Is it in the frontend when the page loads?

    I would also suggest to delete the plugin and reinstall it again.
    It might be possible that some files are missing for some reason on your copy.

    Thanks

    Thread Starter Bob

    (@prasunsen)

    Hi @brelios – I’m getting the errors in the error log so it’s hard to say when it happens exactly – it’s not consistent. Perhaps just checking if the object exists will solve it?

    before line 155:
    if(empty($settings)) return;

    • This reply was modified 1 year, 4 months ago by Bob.
    • This reply was modified 1 year, 4 months ago by Bob.

    Hi,

    Can you please tell me how you added the Modal to the site?
    As a menu item, a shortcode, a Gutenberg block or programmatically?

    The error seems caused by a missing class/file. Have you tried deleting and reinstalling the plugin?

    Thanks

    Thread Starter Bob

    (@prasunsen)

    Hello, it’s a menu item:

    https://pasteboard.co/Ut1yjb03xeWM.png

    Reinstalled and confirmed that there are no missing files.

    Hi @prasunsen,

    thanks for the extra info!
    The developer will take a look at it and as soon as I have some news I’ll let you know.

    Hi @prasunsen,

    I just wanted to let you know that an update has just been released and it should prevent the error you reported.
    Please let me know if after updating you still have any problem.

    Thanks

    Thread Starter Bob

    (@prasunsen)

    Thank you! I’ll report if there is any issue.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Call to undefined method stdClass::get(’ is closed to new replies.