Support » Plugin: Elementor Page Builder » PHP Fatal Error after last update

  • Resolved shecky

    (@shecky)


    Hi, after last update of Elementor (2.0.3) in my site I have this error:
    PHP Fatal error: Uncaught Exception: Post ID #1 is not exist in /wp-content/plugins/elementor/core/base/document.php:632

    I use some “fake pages” on my site: pages that are therefore neither post nor page.

    WordPress release is last one (ver. 4.9.4)

    Can you help me?

    Thanks!

Viewing 13 replies - 1 through 13 (of 13 total)
  • I found the problem on class Document (function construct) on line 632.

    If post not exist you made an exception.
    I have commented the exception and everything returns to work!

    Please fix it, because I suppose that other WordPress users use fake pages like me!

    Regards!

    Plugin Author Yakir Sitbon

    (@kingyes)

    What you mean about Fake pages? How you do that? Please share me your code.

    Hi Yakir.

    I use a Class that creates “Virtual Pages” (that are neither posts nor pages) and this pages use an “illegal” value for the page ID.

    This Class create a fake post instance and fill properties of variable $post with everything a page in the database would have.

    At the end the Class reset wp_query properties to simulate a found page.

    Sharing the code would not be possible as it consists of several lines.

    I can understand if you will answer me that this is not a normal use of WordPress, but I am not the only one that use this “Virtual Pages” and up to Elementor version 2.0.0 everything worked regularly.

    Regards.

    Davide.

    For your information, the Class I use is based on:

    https://gist.github.com/robert-kampas/6c1b3240227413581f8b

    Regards.

    Davide.

    Yes – I too am getting a PHP fatal error since upgrading to Elementor 2.0.3 (WordPress 4.9.4). From the error log:

    PHP Fatal error: Out of memory (allocated 102760448) (tried to allocate 3932160 bytes) in …/public_html/wp-content/plugins/elementor/includes/base/widget-base.php on line 361

    Any help would be greatly appreciated!

    • This reply was modified 1 year, 3 months ago by  maazsyed.

    @shecky @kingyes
    Same here after upgrading elementor, Error occurs, when calling pages created by plugin memberwunder.

    Error: Fatal error: Uncaught Exception: Post ID #993 is not exist. in /www/htdocs/w0178428/einfach-empfehlenswert.de/wp-content/plugins/elementor/core/base/document.php:632 Stack trace: #0 /www/htdocs/w0178428/einfach-empfehlenswert.de/wp-content/plugins/elementor/core/document-types/post.php(158): Elementor\Core\Base\Document->__construct(Array) #1 /www/htdocs/w0178428/einfach-empfehlenswert.de/wp-content/plugins/elementor/core/documents-manager.php(186): Elementor\Core\DocumentTypes\Post->__construct(Array) #2 /www/htdocs/w0178428/einfach-empfehlenswert.de/wp-content/plugins/elementor/core/documents-manager.php(215): Elementor\Core\Documents_Manager->get(993) #3 /www/htdocs/w0178428/einfach-empfehlenswert.de/wp-content/plugins/elementor/modules/page-templates/module.php(55): Elementor\Core\Documents_Manager->get_doc_for_frontend(-993) #4 /www/htdocs/w0178428/einfach-empfehlenswert.de/wp-includes/class-wp-hook.php(286): Elementor\Modules\PageTemplates\Module->template_include(‘/www/htdocs/w01…’) #5 /www/htdocs/w0178428/einfac in /www/htdocs/w0178428/einfach-empfehlenswert.de/wp-content/plugins/elementor/core/base/document.php on line 632

    • This reply was modified 1 year, 3 months ago by  priesterath.

    Quick update – updating my site PHP from 5.1 to 7 fixed all errors. A basic oversight. Worth checking on your own one

    • This reply was modified 1 year, 3 months ago by  maazsyed.

    I am on php 7.0

    Downgrade to elementor 1.98 fixed it, so it must be an error in 2.03

    No news Yakir?

    @kingyes, @priesterath

    Plugin Author Yakir Sitbon

    (@kingyes)

    Hey guys,

    Will fix in next version (Reference: https://github.com/pojome/elementor/pull/4024/)

    @kingyes, @shecky
    Good Job! 2.04 solved the problem on my sites.
    Thanks

    @kingyes same for me with 2.05.

    Great job!
    Regards.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘PHP Fatal Error after last update’ is closed to new replies.