Support » Plugin: Easy Photography Portfolio » Rest-API Fatal Error after Update to WP 5.6.1

  • Resolved solla

    (@solla)


    In frontend everything looks fine, but the backend Site Health Check reports an Fatal Error.

    <b>Fatal error</b>: Uncaught Error: Call to a member function get() on null in XXXXXXXXXXXXXXXXX/wp-content/plugins/photography-portfolio/Photography_Portfolio/Core/Query.php:288 Stack trace: #0 XXXXXXXXXXXXXXXXX/wp-content/plugins/photography-portfolio/Photography_Portfolio/Core/Query.php(68): Photography_Portfolio\Core\Query->get_queried_object_id() #1 XXXXXXXXXXXXXXXXX/wp-content/plugins/photography-portfolio/compatibility/wordpress-seo.php(6): Photography_Portfolio\Core\Query->is_portfolio_home() #2 XXXXXXXXXXXXXXXXX/wp-includes/class-wp-hook.php(287): phort_add_yoast_seo_compatibility(0) #3 XXXXXXXXXXXXXXXXX/wp-includes/plugin.php(212): WP_Hook->apply_filters(0, Array) #4 XXXXXXXXXXXXXXXXX/wp-content/plugins/wordpress-seo/src/helpers/current-page-helper.php(94): apply_filters('wpseo_frontend_...', 0) #5 XXXXXXXXXXXXXXXXX/wp-content/plugins/wordpress-seo/src/h in <b>XXXXXXXXXXXXXXXXX/wp-content/plugins/photography-portfolio/Photography_Portfolio/Core/Query.php</b> on line <b>288</b><br /> <!DOCTYPE html> <html lang="de-DE"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width"> <meta name='robots' content='noindex,follow' /> <title>WordPress › Fehler</title> <style type="text/css"> html { background: #f1f1f1; } body { background: #fff; color: #444; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; margin: 2em auto; padding: 1em 2em; max-width: 700px; -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13); } h1 { border-bottom: 1px solid #dadada; clear: both; color: #666; font-size: 24px; margin: 30px 0 0 0; padding: 0; padding-bottom: 7px; } #error-page { margin-top: 50px; } #error-page p, #error-page .wp-die-message { font-size: 14px; line-height: 1.5; margin: 25px 0 20px; } #error-page code { font-family: Consolas, Monaco, monospace; } ul li { margin-bottom: 10px; font-size: 14px ; } a { color: #0073aa; } a:hover, a:active { color: #006799; } a:focus { color: #124964; -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); outline: none; } .button { background: #f7f7f7; border: 1px solid #ccc; color: #555; display: inline-block; text-decoration: none; font-size: 13px; line-height: 2; height: 28px; margin: 0; padding: 0 10px 1px; cursor: pointer; -webkit-border-radius: 3px; -webkit-appearance: none; border-radius: 3px; white-space: nowrap; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-box-shadow: 0 1px 0 #ccc; box-shadow: 0 1px 0 #ccc; vertical-align: top; } .button.button-large { height: 30px; line-height: 2.15384615; padding: 0 12px 2px; } .button:hover, .button:focus { background: #fafafa; border-color: #999; color: #23282d; } .button:focus { border-color: #5b9dd9; -webkit-box-shadow: 0 0 3px rgba(0, 115, 170, 0.8); box-shadow: 0 0 3px rgba(0, 115, 170, 0.8); outline: none; } .button:active { background: #eee; border-color: #999; -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5); } </style> </head> <body id="error-page"> <div class="wp-die-message"><p>Es gab einen kritischen Fehler auf deiner Website.</p><p><a href="https://wordpress.org/support/article/debugging-in-wordpress/">Erfahre mehr über die Fehlerbehebung in WordPress.</a></p></div></body> </html>
    

    It results in deactivating the Gutenberg Blocks

    Der Aufruf der REST-API führte zu folgendem unerwarteten Ergebnis: (500) <br /> .

    After deactivating the Easy Photography Portfolio Plugin, the blockfunction works and the error don’t shows up.

    Will there be an update to fix this issus?

    Thanks in advance,
    Solla

Viewing 5 replies - 1 through 5 (of 5 total)
  • Ryan

    (@ryandavison11)

    I have the same problem with the same error. I found that just disabling the Yoast SEO plugin was a quick temporary fix. I hope there can be an EPP update soon though.

    Thread Starter solla

    (@solla)

    @ryandavison11 Thank you, geat, works fine for me too (y)

    Hope there will be a fix, soon!

    Pues a mi me sigue dando error de API REST y no me deja editar páginas tarándome el siguiente error:

    Ha habido un error crítico en esta web. Por favor, comprueba la bandeja de entrada del correo electrónico del administrador de tu sitio para obtener instrucciones.

    Lo he deshabilitado de Yoast y aún así me tira errores. Y tampoc quiero deshabilitar Yoast por completo. Me temo que si no lo solucionan me tendré que cambiar de plugin…

    Plugin Author Nauris (a11n)

    (@pyronaur)

    I’m releasing a fix for this today – please update the plugin, that should fix the issue.

    Thread Starter solla

    (@solla)

    @pyronaur Wow, thank you very much. So happy, to be able to use it furthermore.
    Made my day!!! In my opinion the best and most powerful and at the same time the easiest to use plugin for portfolios that I know. In the last few days I have looked for and tested many alternatives
    Best regards, and thank you very much again 😀
    Solla

    • This reply was modified 3 years ago by solla.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Rest-API Fatal Error after Update to WP 5.6.1’ is closed to new replies.