• Resolved kenn

    (@dima800)


    After installing 0.9.62White screen on normal and amp pages.

    After deactivating the plugin the site works.

    The Theme Hueman Pro + WP 4.8.2.

    Log Error: [Mon Sep 25 18:42:28 2017] [error] [client 85.140.3.174] PHP Fatal error: Cannot redeclare mysql2date() (previously declared in /var/www/www-root/data/www/site.com/wp-includes/functions.php:26) in /var/www/www-root/data/www/site.com/functions.php on line 42

    wp-includes/functions.php:
    26 function mysql2date( $format, $date, $translate = true ) {
    27 if ( empty( $date ) )
    28 return false;
    29
    30 if ( ‘G’ == $format )
    31 return strtotime( $date . ‘ +0000’ );
    32
    33 $i = strtotime( $date );
    34
    35 if ( ‘U’ == $format )
    36 return $i;
    37
    38 if ( $translate )
    39 return date_i18n( $format, $i );
    40 else
    41 return date( $format, $i );
    42}

    • This topic was modified 7 years, 6 months ago by kenn.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hi @dima800

    That’s strange, we should have added proper prefixes. I apologize for the inconvenience. I have created a ticket for this, I will make sure that it gets fixed in the next updates.

    https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/1144

    Regards,
    Ahmed

    Thank you Kenn for confirming this issue. I spent a lot of time pulling my hair out over these redeclare issues when it turned out that the 0.9.62 version of the AMP plugin was indeed the cause.

    In my case, it didn’t matter what the function names were. It caused the contact form to fail on various pages as well.

    [Thu Sep 28 04:00:50.309215 2017] [:error] [pid 25869] [client 71.47.89.118:61669] PHP Fatal error: Cannot redeclare diagproperties_setup() (previously declared in /nas/content/live/diagproperties/wp-content/themes/diagproperties/functions.php:29) in /nas/content/live/diagproperties/wp-content/themes/diagproperties/functions.php on line 37, referer: https://www.diagproperties.com/houses/425-cross/

    [Thu Sep 28 04:02:14.822041 2017] [:error] [pid 29354] [client 71.47.89.118:63577] PHP Fatal error: Cannot redeclare my_admin_bar_init() (previously declared in /nas/content/live/diagproperties/wp-content/themes/diagproperties/functions.php:15) in /nas/content/live/diagproperties/wp-content/themes/diagproperties/functions.php on line 16, referer: https://www.diagproperties.com/houses/425-cross/

    [Thu Sep 28 04:05:46.857671 2017] [:error] [pid 24697] [client 71.47.89.118:12924] PHP Fatal error: Cannot redeclare my_filter_remove() (previously declared in /nas/content/live/diagproperties/wp-content/themes/diagproperties/functions.php:16) in /nas/content/live/diagproperties/wp-content/themes/diagproperties/functions.php on line 17, referer: https://www.diagproperties.com/houses/425-cross/

    To resolve, I downgraded to version 0.9.61. Thank you Ahmed for addressing this issue promptly. Keep up the good work.

    • This reply was modified 7 years, 5 months ago by Kondor with a K. Reason: Adding spaces

    @dima800 , @kondorwithak

    Can you guys try to change the following code in
    accelerated-mobile-pages\pagebuilder\amp-page-builder.php
    at line number 161:
    from : require_once “functions.php”;
    to : require_once AMP_PAGE_BUILDER.’functions.php’;

    Please let us know as soon as you’ve tested this, It would be a great help.

    Perfect!

    That fix did the trick. Looks like the wrong functions.php file was being included causing a conflict as WordPress thought the theme functions were being declared once again.

    It may be a good idea to change the name of the AMP functions.php file to something else to avoid any such issue as well, such as ampfunctions.php.

    Thanks @sejiro for the assist!

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    @kondorwithak

    Glad to hear that, Yep, We will make sure that it gets fixed in the next update.

    I don’t have experience in programming, and I can not access the dashboard
    The same problem with my website
    https://bestdealscarinsurance.com/
    please help

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hi @emara10

    Sure, we totally understand that. can you please contact us via [email protected] Our team will personally help you with it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problems after installing 0.9.62’ is closed to new replies.