The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED cpaddons WP update hangs on plugin error

Discussion in 'General Discussion' started by jndawson, Apr 14, 2017.

  1. jndawson

    jndawson Well-Known Member

    Joined:
    Aug 27, 2014
    Messages:
    147
    Likes Received:
    14
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    We have a customer trying to update his newly installed via cpaddons wordpress using the cpaddons update button and is getting the following error:
    Code:
    The system could not copy the “/home/username/public_html/wp-content/plugins/akismet/views/strict.php” folder to working folder “./wp-content/plugins/akismet/views/strict.php”.
    Error: The system could not prepare the working directory:
    That's the entire error message, and we also see it when trying the update via WHM. The odd thing is that the file 'strict.php' doesn't exist, permissions are all correct for directories (755) and files (644).

    In the /usr/local/cpanel/logs/error_log:
    Code:
    Cpanel::FileUtils::Copy::safecopy("/home/username/public_html/wp-content/plugins/akismet/views/st"..., "./wp-content/plugins/akismet/views/strict.php") called at /usr/local/cpanel/Cpanel/cPAddons/Obj.pm line 874
    Which is:
    Code:
            $copy_to_working_folder_ok = Cpanel::FileUtils::Copy::safecopy( $source_directory, $update_directory );
    Any ideas how to fix this?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you verify which version of cPanel is installed on the system? EX:

    Code:
    cat /usr/local/cpanel/version
    Also, can you verify the customer made no changes to the WordPress files after initially installing it via cPanel?

    Thank you.
     
  3. jndawson

    jndawson Well-Known Member

    Joined:
    Aug 27, 2014
    Messages:
    147
    Likes Received:
    14
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    64.0.12
    We're waiting for a response from the customer for confirmation, but from our ticket, he indicates he's not made any changes to WP files.
     
    #3 jndawson, Apr 14, 2017
    Last edited: Apr 14, 2017
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  5. jndawson

    jndawson Well-Known Member

    Joined:
    Aug 27, 2014
    Messages:
    147
    Likes Received:
    14
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    That might could be it. The install is identified with '(legacy)'.

    What's the solution? Your release notes aren't clear:
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Since it's a legacy WordPress cPAddon installation, the error message suggests the user modified the core WordPress files and thus the update is failing. If you can confirm the core files were not modified, feel free to open a support ticket using the link in my signature so we can take a closer look.

    Thanks!
     
  7. jndawson

    jndawson Well-Known Member

    Joined:
    Aug 27, 2014
    Messages:
    147
    Likes Received:
    14
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    UPDATE:
    We opened a ticket. There were several files missing due to th ecustomer removing stuff he thought he didn't need, and after several false starts at restoring the files, the following steps to re-install, then upgrade were taken:

    Code:
    /home/username/public_html # curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
     
    /home/username/public_html # chmod +x wp-cli.phar
    
    /home/username/public_html # php wp-cli.phar core download --version=4.7.2 --force
    
    The update to 4.7.3 was then properly completed using the cpaddons upgrade link.

    Hope that helps somebody.
     
    Infopro and cPanelMichael like this.
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm happy to see the issue is now solved. Thank you for updating us with the outcome.
     
Loading...

Share This Page