Support » Plugin: AMP for WP - Accelerated Mobile Pages » Several errors regarding PHP mostly

  • Resolved dogacankanat

    (@dogacankanat)


    Hello,

    WordPress 4.8.2 (Multisite) – PHP 7.1.10 – X Pro Theme

    I turned on wp-debug to see if any errors generated on my site and found out that AMP for WP generates several errors on admin side and on frontend.

    I use many plugins on my setup and that’s the only plugin creating errors. Kinda strange.

    Could you please assist me solving these issues. Thanks in advance.

    Error 1-
    PHP Notice: Undefined variable: output in /data/www/XXXXXX/XXXXXX/www/wp-content/plugins/accelerated-mobile-pages/pagebuilder/modules/blurb.php on

    Error 2-
    PHP Deprecated: Non-static method AMP_Customizer_Design_Settings::register_customizer_ui() should not be called statically in /data/www/XXXXXX/XXXXXX/www/wp-includes/class-wp-hook.php on line 298

    Error 3-
    PHP Deprecated: Non-static method AMPFORWP_Customizer_Design_Contols::register_customizer_ui() should not be called statically in /data/www/XXXXXX/XXXXXX/www/wp-includes/class-wp-hook.php on line 298

    Error 4-
    PHP Notice: Use of undefined constant AMPFORWP_DM_SOCIAL_CHECK - assumed 'AMPFORWP_DM_SOCIAL_CHECK' in /data/www/XXXXXX/XXXXXX/www/wp-content/plugins/accelerated-mobile-pages/templates/features.php on line 382

    Error 5-
    PHP Notice: Funkce AMP_Post_Template::verify_and_include <strong>nebyla použita správným způsobem</strong>. Path validation for template () failed. Path cannot traverse and must be located in WP_CONTENT_DIR. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (Tato zpráva se nově zobrazuje od verze 0.1.) in /data/www/XXXXXX/XXXXXX/www/wp-includes/functions.php on line 4139

    Error 6-
    PHP Notice: Undefined index: opt-color-rgba in /data/www/XXXXXX/XXXXXX/www/wp-content/plugins/accelerated-mobile-pages/templates/design-manager/design-3/style.php on line 329

    Error 7-
    PHP Notice: Funkce AMP_Post_Template::verify_and_include <strong>nebyla použita správným způsobem</strong>. Path validation for template (/data/www/XXXXXX/XXXXXX/www/wp-content/plugins/accelerated-mobile-pages/includes/vendor/amp//templates/bread-crumbs.php) failed. Path cannot traverse and must be located in WP_CONTENT_DIR. Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (Tato zpráva se nově zobrazuje od verze 0.1.) in /data/www/XXXXXX/XXXXXX/www/wp-includes/functions.php on line 4139

    Error 8-
    PHP Notice: Only variables should be passed by reference in /data/www/XXXXXX/XXXXXX/www/wp-content/plugins/accelerated-mobile-pages/templates/design-manager/design-3/elements/bread-crumbs.php on line 71

    Error 9-
    PHP Notice: Trying to get property of non-object in /data/www/XXXXXX/XXXXXX/www/wp-content/plugins/accelerated-mobile-pages/templates/design-manager/design-3/elements/bread-crumbs.php on line 82

    (P.S. Now I have turned off debugging not to disturb visitors since my sites are live.)

    Regards,
    DYK

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hi @dogacankanat

    Please update to the 0.9.63 – We have fixed almost all the debug warnings and errors that we found.

    Please give it a try and let us know.

    Hi @ahmedkaludi

    I have updated plugin to 0.9.63, clear all caches and made some tests.

    Below errors generated:

    PHP Notice: Undefined index: ampforwp-category-base-removel-link in /data/www/XXXXXX/XXXXXX/www/wp-content/plugins/accelerated-mobile-pages/base_remover/base_remover.php on line 46

    PHP Notice: Undefined index: ampforwp-tag-base-removal-link in /data/www/XXXXXX/XXXXXX/www/wp-content/plugins/accelerated-mobile-pages/base_remover/base_remover.php on line 47

    PHP Notice: Undefined index: amp-on-off-for-all-posts in /data/www/XXXXXX/XXXXXX/www/wp-content/plugins/accelerated-mobile-pages/templates/features.php on line 3739

    PHP Notice: Undefined index: amp-on-off-for-all-posts in /data/www/XXXXXX/XXXXXX/www/wp-content/plugins/accelerated-mobile-pages/install/index.php on line 49

    PHP Notice: Use of undefined constant AMPFORWP_DM_SOCIAL_CHECK - assumed AMPFORWP_DM_SOCIAL_CHECK in /data/www/XXXXXX/XXXXXX/www/wp-content/plugins/accelerated-mobile-pages/templates/features.php on line 384

    PHP Notice: Undefined index: type in /data/www/XXXXXX/XXXXXX/www/wp-content/plugins/accelerated-mobile-pages/includes/options/redux-core/framework.php on line 2962

    and this Redux one (I am not developing online so don’t know what can be the issue)

    https://imgur.com/a/XGz3b

    Could you please assist me solving these issues. Thanks in advance.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hi @dogacankanat

    I have noted these errors here: https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/1219

    I will make sure that it gets fixed in the next update.

    Thank you for reporting!

    Hello @ahmedkaludi

    Seems like all errors I mentioned in above post solved with the latest update 0.9.64

    Thanks a lot. Keep up the good work!

    Cheers.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Several errors regarding PHP mostly’ is closed to new replies.