• gureu

    (@gureu)


    I have installed the plugin 3 days ago and at the beginning everything works well, but today I have found my website down and I have checked the log and I have found that the problem is linked with the plugin “Amazon Auto Link”. Below you can find an extract of my log:

    [13-Nov-2016 16:10:08 UTC] PHP Warning: include(): Failed opening ‘/home/tognsgce/public_html/wp-content/plugins/amazon-auto-links/include/class/component/unit/_common/post_type/unit/AmazonAutoLinks_PostType_Unit_Action.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/tognsgce/public_html/wp-content/plugins/amazon-auto-links/include/library/apf/factory/_common/utility/AdminPageFramework_RegisterClasses.php on line 81
    [13-Nov-2016 16:10:08 UTC] PHP Fatal error: Class ‘AmazonAutoLinks_PostType_Unit_Action’ not found in /home/tognsgce/public_html/wp-content/plugins/amazon-auto-links/include/class/component/unit/_common/post_type/unit/AmazonAutoLinks_PostType_Unit_PostContent.php on line 17

    Could you help me?

    Thanks in advance.
    Daniele

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author miunosoft

    (@miunosoft)

    Hi,

    Sounds like a necessary file is missing.

    Try reinstalling the plugin. If you cannot login to your site, you would need to access your site via FTP or File Manage (which most cPanel supports). Then delete the directory named amazon-auto-links under wp-content/plugins. After that, just install the plugin normally.

    If you still keep getting the same error after reinstalling the plugin, try changing the plugin directory name, amazon-auto-links to something else like amazon-auto-links-mod.

    Let me know what happens then.

    Thread Starter gureu

    (@gureu)

    Sorry, how I can change the plugin directory? What file I have to change before the installation?

    Could you help me?

    Thanks in advance.
    Daniele

    Plugin Author miunosoft

    (@miunosoft)

    Hello,

    You want to use FTP client software or File Manager via the control panel that your server provides to access the WordPress installed directory. If you don’t understand this, ask your host about it.

    You don’t have to change a file name. You want to try changing the plugin directory name.

    Thread Starter gureu

    (@gureu)

    Ok, I’m able to change everything via FTP, but if I change only the directory plugin after the installation it doesn’t work. Probably I have to change something also in others files or maybe in the database. Is it correct?

    Thanks in advance for your support.

    Daniele

    Plugin Author miunosoft

    (@miunosoft)

    Hi,

    Can you describe how it does not work in the following cases.

    A
    1. Uninstall the plugin.
    2. Reinstall and activate the plugin.
    3. Post an error you get.

    B
    1. Uninstall the plugin.
    2. Reinstall and activate the plugin.
    3. Rename the plugin directory name.
    4. Post an error you get.

    Thread Starter gureu

    (@gureu)

    In case of A no problem at the beginnig, but after 3-4 days The website goes down…in the log file I ahve an error like this:

    "[13-Nov-2016 16:10:08 UTC] PHP Warning: include(): Failed opening ‘/home/tognsgce/public_html/wp-content/plugins/amazon-auto-links/include/class/component/unit/_common/post_type/unit/AmazonAutoLinks_PostType_Unit_Action.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/tognsgce/public_html/wp-content/plugins/amazon-auto-links/include/library/apf/factory/_common/utility/AdminPageFramework_RegisterClasses.php on line 81
    [13-Nov-2016 16:10:08 UTC] PHP Fatal error: Class ‘AmazonAutoLinks_PostType_Unit_Action’ not found in /home/tognsgce/public_html/wp-content/plugins/amazon-auto-links/include/class/component/unit/_common/post_type/unit/AmazonAutoLinks_PostType_Unit_PostContent.php on line 17"

    In case of B, I have tried to rename the directory in “amazon-auto-links2”, but when I have tried to reactivate the plugin I have received this error:

    "Warning: include(/home/tognsgce/public_html/wp-content/plugins/amazon-auto-links2/include/class/component/unit/_common/post_type/unit/AmazonAutoLinks_PostType_Unit_Action.php): failed to open stream: No such file or directory in /home/tognsgce/public_html/wp-content/plugins/amazon-auto-links2/include/library/apf/factory/_common/utility/AdminPageFramework_RegisterClasses.php on line 81
    
    Warning: include(): Failed opening '/home/tognsgce/public_html/wp-content/plugins/amazon-auto-links2/include/class/component/unit/_common/post_type/unit/AmazonAutoLinks_PostType_Unit_Action.php' for inclusion (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear') in /home/tognsgce/public_html/wp-content/plugins/amazon-auto-links2/include/library/apf/factory/_common/utility/AdminPageFramework_RegisterClasses.php on line 81
    
    Fatal error: Class 'AmazonAutoLinks_PostType_Unit_Action' not found in /home/tognsgce/public_html/wp-content/plugins/amazon-auto-links2/include/class/component/unit/_common/post_type/unit/AmazonAutoLinks_PostType_Unit_PostContent.php on line 17"
    Plugin Author miunosoft

    (@miunosoft)

    Hi,

    So basically you get the same error. The file AmazonAutoLinks_PostType_Unit_PostContent is missing. Can you check if the file exists via FTP? The file path is written in the error.

    Thread Starter gureu

    (@gureu)

    Yes, the file exists!

    You can see the print screen…

    FTP

    • This reply was modified 7 years, 10 months ago by gureu.
    Plugin Author miunosoft

    (@miunosoft)

    It can be that the file is blocked by the system.

    One thing you can try is to copy the file to somewhere and change the code that points the file location.

    1. Save the file AmazonAutoLinks_PostType_Unit_PostContent.php as AmazonAutoLinks_PostType_Unit_PostContent2.php in the same directory.
    2. Open the file include/class-list.php.
    3. Find a line

    
    "AmazonAutoLinks_PostType_Unit_PostContent"=> AmazonAutoLinks_Registry::$sDirPath . "/include/core/component/unit/_common/post_type/unit/AmazonAutoLinks_PostType_Unit_PostContent.php",
    

    and change it to

    
    "AmazonAutoLinks_PostType_Unit_PostContent"=> AmazonAutoLinks_Registry::$sDirPath . "/include/core/component/unit/_common/post_type/unit/AmazonAutoLinks_PostType_Unit_PostContent2.php",
    

    Let me know if the error disappears.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘AmazonAutoLinks_PostType_Unit_Action’ not found’ is closed to new replies.