• Resolved crewstyle

    (@crewstyle)


    Hi there,

    Before to start, I want to let you know I’ve read your sticky topic. I wanted to share the solution with everyone in the same wordpress customization than me.

    In my website, I use a custom wp-content folder (named “whatever”) and my real wp-content folder is stored in a shared repository. More of that, I use a custom CMS path.
    I’ve set this configuration because I have a load balancer with 2 or 3 frontends and a single medias folder.

    To be clear:
    – WP CONTENT: https://mydomain/whatever/
    – WP ADMIN: https://mydomain/cms/
    – DOC ROOT: /path/to/wordpress (where folders cms and whatever are)
    – SHARED DOC ROOT: /sharedpath/to/wordpress (where folders wp-admin and wp-content are)

    In that specific case, when I use Shortpixel bulk and specific optimization tool, I’m facing a PHP error 500: copy(/path/to/wordpress/cms/sharedpath/to/wordpress/wp-content/uploads/2019/16/myimage.webp): failed to open stream: No such file or directory. from the file class/model/file_model.php line 180.

    To solve this issue quickly, I’ve had to add the following line 165:
    $destinationPath = str_replace('/path/to/wordpress/cms', '', $destinationPath);

    Could you please make a real fix for this?

    Best regards,
    crewstyle

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error with symlinked wp-content folder’ is closed to new replies.