Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Mohammed Kaludi

    (@mohammed_kaludi)

    Hey @ausbel,

    I apologize for the issue, After seeing the thread I checked the code and found the code that could break.

    I have tested the current version(0.9.93) on several of my test websites and other testing environments and I was not able to recreate the issue here.

    If you are comfortable modifying some code then I can share it with you and if the issue is fixed on your site then I’ll push a small update immediately.

    Can I share the instructions?

    Thread Starter MUMBERE AUSBEL

    (@ausbel)

    Yes share.

    Plugin Author Mohammed Kaludi

    (@mohammed_kaludi)

    Thank you very much for your co-operation.

    Please open accelerated-moblie-pages.php in code editor and go to line no 461

    you will see the code like this
    if( file_exists(realpath(plugin_dir_path(FILE).'../amp/amp.php')) ){

    Just rename FILE constant to __FILE__

    So the new code will look like this
    if( file_exists(realpath(plugin_dir_path(__FILE__).'../amp/amp.php')) ){

    Also same thing in line no 470
    if($GLOBALS['pagenow'] === 'plugins.php' && file_exists( realpath(plugin_dir_path(FILE).'../amp/amp.php') ) ){

    to like this

    if($GLOBALS['pagenow'] === 'plugins.php' && file_exists( realpath(plugin_dir_path(__FILE__).'../amp/amp.php') ) ){

    Screenshot for more help https://take.ms/uBPWx

    Do let me know if this fixed the issue for you so I can push the update immediately.

    Thread Starter MUMBERE AUSBEL

    (@ausbel)

    Hello, this has broken down My site.

    Thread Starter MUMBERE AUSBEL

    (@ausbel)

    Also try

    Thread Starter MUMBERE AUSBEL

    (@ausbel)

    I have checked again,my site is working but the error is still showing on my website.

    Plugin Author Mohammed Kaludi

    (@mohammed_kaludi)

    Are you sure it is a double underscore “__FILE__”?

    Because I just checked and it looks like its single underscore “_FILE_”

    Plugin Author Mohammed Kaludi

    (@mohammed_kaludi)

    Looks like its working now (https://take.ms/FgSIe)

    Plugin Author Mohammed Kaludi

    (@mohammed_kaludi)

    I have pushed the update(0.9.94) and it should fix the issue.

    Thread Starter MUMBERE AUSBEL

    (@ausbel)

    Hey Mohammed Kaludi

    Since I also helped bug, I would appreciate it if you also checked out this my post if you got the time .

    https://www.ads-software.com/support/topic/auto-amp-ads-please/

    Kindly a request.

    Plugin Author Mohammed Kaludi

    (@mohammed_kaludi)

    Did replied to that thread, also closing this thread as the issue has been resolved.

    Thread Starter MUMBERE AUSBEL

    (@ausbel)

    Hello am sorry but error persists.

    My site is showing this because of the amp plugin. Remember not to visit my site Via amp extension but my original site. It shows this.

    Notice: Use of undefined constant _FILE_ – assumed ‘_FILE_’ in /home/u476419727/public_html/wp-content/plugins/accelerated-mobile-pages/accelerated-moblie-pages.php on line 461

    Plugin Author Mohammed Kaludi

    (@mohammed_kaludi)

    This is strange,

    Can you please delete and reinstall the pluign also please clear the cache if you have.

    And do let me know if the issue persists.

    Thread Starter MUMBERE AUSBEL

    (@ausbel)

    @mohammed_kaludi thanks it worked. I however lost all my settings, but luckily enough you introduced a feature of exporting our settings.

    Thanks for great plugin

    Plugin Contributor ampforwp

    (@ampforwp)

    Hello @ausbel

    Thank you for the compliment.

    Glad that your issue gets fixed, if you have any issues then please let me know.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘New update messes up my site’ is closed to new replies.