Support » Plugin: Forminator - Contact Form, Payment Form & Custom Form Builder » Call to undefined function get_current_screen()

  • Resolved ozwest

    (@ozwest)


    We had the problem when trying to configure VikRentCars that the error:

    Call to undefined function get_current_screen()

    showed up. After troubleshooting we found out that “WP Forms Lite” and “Forminator” are causing this fatal error.

    This plugin should not load when you’re in another plugin (as defined in the WordPress standards), this erroneous loading is causing fatal errors and conflicts when in the admin section.

    We can only deactivate Forminator in order to use VikRentCar.

    Do you have a solution for this?

    Thank you

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Adam – WPMU DEV Support

    (@wpmudev-support8)

    Hi @ozwest

    I hope you’re well today!

    The behavior that you describe would mean that there’s some conflict but we didn’t have any reports on that so far. I tried to replicate that on my own setup with recent Forminator release but I wasn’t able – there was no errors at all and both Forminator and the other plugin worked fine.

    To make sure, is this the “WP Forms Lite” plugin that you are using?

    https://wordpress.org/plugins/wpforms-lite/

    If yes, what exact step should I take to replicate it/trigger the error?

    Please advice so we could test it and look into it to find solution.

    Kind regards,
    Adam

    Thread Starter ozwest

    (@ozwest)

    Hello Adam

    Thank you for your quick reply.

    I have “Forminator” installed but it throws the same errors as “WP Forms Lite”. The developer of VikCarRental https://wordpress.org/plugins/vikrentcar/ have alerted me to the fact that this problem is not caused on their side and they say it is the same error that is caused by “WP Forms Lite”.

    To replicate you need to install “Forminator” and then install VikCarRental. When you then go into the settings of the VikCarRental and configure it using NEW… you will see the error.

    I hope this helps. Thank you for looking into this because at the moment we can only use VIKCarRental when we deactivate “Forminator”.

    Petra

    Thread Starter ozwest

    (@ozwest)

    Further testing …

    I did further testing … VikRentCar (free version) installed, some configurations in VikRentCar possible when Forminator is disabled, then switching Forminator back on.

    Then I filled in a form in Forminator and sent it off … the form never got sent, stuck on spinning wheel waiting for the confirmation that the form has been sent.

    Plugin Support Prathamesh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @wpmudev-support8,

    I tried to add cars, tax rates, pricing, categories and also tried to place an order which worked for me. I also created a forminator form and added that to the same page as the order form and tested that too which worked.

    Could you help me with a specific operation which did not work for you or complete steps to replicate the same? I see that you mentioned that you did get fatal errors too. Could you also help me with the screenshot to those errors to guess what would be causing that? Also, could you help me with the WordPress version and the PHP version you are using on the site currently?

    Thank you,
    Prathamesh Palve

    Thread Starter ozwest

    (@ozwest)

    Hello Prathamesh

    This is one form that we have created in Forminator https://campertrailerswa.com.au/camper-trailer-hiring-agreement/.
    When VikRentCar is activated, this form does not send, meaning we get the spinning wheel where the message shows up once the form is submitted.

    Which means we can not use both plugins at the same time on this website.

    Also, when we want to add something in the backend of VikRentCar for example:

    Go to CARS -> CARS LIST and then click on NEW CAR to add a new car, the following error appears:
    https://www.dropbox.com/s/evncgixghjtm0la/screenshot%20crashing%20when%20adding%20a%20new%20car.png?dl=0

    When we disactivate FORMINATOR we can add a car or other things for that matter.

    Plugin Support Adam – WPMU DEV Support

    (@wpmudev-support8)

    Hi @ozwest

    Thanks for response!

    Also, when we want to add something in the backend of VikRentCar for example:

    Go to CARS -> CARS LIST and then click on NEW CAR to add a new car, the following error appears:
    https://www.dropbox.com/s/evncgixghjtm0la/screenshot%20crashing%20when%20adding%20a%20new%20car.png?dl=0

    When we disactivate FORMINATOR we can add a car or other things for that matter.

    I have just tried that on my end with recent free version of VikRentCar and recent Forminator but with no other plugins active and with Twenty Twenty theme – and I still can’t replicate this.

    I also didn’t experience any issues with sending Forminator form while VikRentCar plugin was active.

    Have you tried to actually disable everything else but these two plugins and switch site to Twenty Twenty to see if it’s working then and if yes – switch theme and other plugins back one by one after each one testing for the issue?

    It’s very likely that there’s an additional conflict and this process should reveal it.

    Also, is the WordPress up to date and what PHP version is powering your site?

    Kind regards,
    Adam

    Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hello, we haven’t heard back from you in a while so we will close down this ticket, if you have any followup questions feel free to reopen it.

    Cheers,
    Predrag

    Thread Starter ozwest

    (@ozwest)

    Hello Predag

    I have done some trouble shooting and what I have found was that the plugin YOAST SEO is the culprit.

    I have deactivated it and now Forminator as well as VikRentCar is working fine. However it would be nice to have that plugin back.

    Thanks

    Plugin Support Prathamesh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @ozwest,

    As you deactivated Yoast SEO plugin and that resolved the issue, I suppose the issue should be with that plugin which is why I would suggest you contact the Yoast plugin support and request them to fix the same as that should be something being caused from their code.

    Should you have any doubts or need any help, feel free to open a fresh thread and we would be happy to help.

    Thank you,
    Prathamesh Palve

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Call to undefined function get_current_screen()’ is closed to new replies.