Woocommerce thinks images are in site root not in upload – causes 500 server err
-
This page : https://www.ndp3.org/buy-ndp3-online/
Loads fine.The first two products also load fine.
Most of the rest timeout and 500 error.This page: https://www.ndp3.org/product/ndp3-speech-builder/
I ran a strace of the PHP process that was trying to load the page and saw a lot of entries like the ones below in a kind of never-ending loop until the script hit the timeout limit and died.
lstat(“/home/mircale/ndp3.org/Shop-speech-builder-450×450.jpg”,
0x3cf45ebd730) = -1 ENOENT (No such file or directory)
access(“/home/mircale/ndp3.org/wordpress/wp-content/plugins/woocommerce/includes /class-wc-product-gift-wrap.php”,
R_OK) = -1 ENOENT (No such file or directory)
getcwd(“/home/mircale/ndp3.org”, 4096) = 23
lstat(“/home/mircale/ndp3.org/Shop-speech-builder-80×80.jpg”,
0x3cf45ebc740) = -1 ENOENT (No such file or directory)
getcwd(“/home/mircale/ndp3.org”, 4096) = 23
lstat(“/home/mircale/ndp3.org/Shop-speech-builder-80×80.jpg”,
0x3cf45ebc740) = -1 ENOENT (No such file or directory)
getcwd(“/home/mircale/ndp3.org”, 4096) = 23
lstat(“/home/mircale/ndp3.org/Shop-speech-builder-100×100.jpg”,
0x3cf45ebc740) = -1 ENOENT (No such file or directory)
getcwd(“/home/mircale/ndp3.org”, 4096) = 23
lstat(“/home/mircale/ndp3.org/Shop-speech-builder-100×100.jpg”,
0x3cf45ebc740) = -1 ENOENT (No such file or directory)
getcwd(“/home/mircale/ndp3.org”, 4096) = 23
lstat(“/home/mircale/ndp3.org/Shop-speech-builder-450×450.jpg”,
0x3cf45ebc740) = -1 ENOENT (No such file or directory)
getcwd(“/home/mircale/ndp3.org”, 4096) = 23
lstat(“/home/mircale/ndp3.org/Shop-speech-builder-450×450.jpg”,
0x3cf45ebc740) = -1 ENOENT (No such file or directory)This suggests that there’s some setting or fragment buried in the database that is forcing certain products to think their images are hosted in the root web directory rather than the
wordpress/wp-content/uploads
directory.If you can suggest what to do, would be super helpful and appreciated ??
The page I need help with: [log in to see the link]
- The topic ‘Woocommerce thinks images are in site root not in upload – causes 500 server err’ is closed to new replies.