• Resolved Josivandro Avelar

    (@josivandroavelar)


    Today I tried to edit a page in Elementor on a client’s site, and I came across the error “The preview cannot be loaded”. When previewing the debug, what was detected was this:

    strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

    I tried to solve the problem in the recommended ways, but none of them worked. What problem would that be and what would be the best way to solve it?

    Thank you in advance for any answers given.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @josivandroavelar , is the page loading with Safe Mode enabled?

    In the meanwhile:

    -Make sure the theme files exist. Install or re-install your theme to make sure it works properly.
    -Check the structure of your permalinks. Try to save your permalinks one more time. Also, try to change the permalink structure to Plain (Dashboard > Settings > Permalinks > Plain). Some servers do not allow you to write to the .htaccess file and as a matter of fact, you cannot always modify your permalink structure and edit with Elementor.
    -Edit in incognito mode with your browser. This rules out an issue with the browser cache. You should also make sure no add-ons are working in incognito mode and possibly try a different browser all together.

    Thread Starter Josivandro Avelar

    (@josivandroavelar)

    I solved the problem. It was code in the child theme’s functions.php file that was conflicting with Elementor and another plugin. This was detected via the Health Check & Troubleshooting plugin, where I noticed that the parent theme was able to open Elementor, and the child theme could not.

    I adjusted the child theme’s functions.php code and Elementor worked again.

    Hi @josivandroavelar , glad you managed to resolve it! thanks updating us.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error preventing preview’ is closed to new replies.