Home › Forums › ART WordPress Theme › Images are broken
- This topic has 9 replies, 2 voices, and was last updated 1 year, 10 months ago by
SeaTheme.
-
AuthorPosts
-
July 3, 2024 at 8:40 am #30931
Dear SeaTheme,
I have a big problem. All the images are broken and the media library is full of empty frames. Also on the frontend nothing is showing.
When you click on an image linke you get this message:
Forbidden
You don’t have permission to access this resource.Server unable to read htaccess file, denying access to be safeI tried all the usual methods, disabling the plugins, changing the theme. I went through FTP and checked the file permissions and disabled the htaccess file but it still doesnt work…
I talked to my hosting provider and they said they couldnt help because its WordPress problem
Do you have any idea on how to fix this issue and solve the problem?
Here is a link to the web site:
All help is much appreciated
Thanks!
JEHJuly 4, 2024 at 2:15 am #30933Hi there,
Welcome to SeaTheme forum.
I think it might be a permission issue of a file or directory. Try setting the /wp-content/uploads/ directory to 755 and all media files to 644; This post(click) might be helpful to you. Also, please restore the htaccess at the same time.
Regards!
SeaTheme – FAQs – WordPress Customization – FacebookJuly 4, 2024 at 8:53 am #30934Dear SeaTheme,
Thanks I changed the file permissions but it did nothing. I then deleted the .htaccess file and made a new one and put this code in:
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]# END WordPress
But nothing happened.
One thing that was weird is that I couldnt make a new .htaccess file by updating the permalinks in the backend so I had to do it by hand.
I then opened the old .htaccess file I had deleted and this code was in it:
# Block the include-only files.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^wp-admin/includes/ – [F,L]
RewriteRule !^wp-includes/ – [S=3]
RewriteRule ^wp-includes/[^/]+\.php$ – [F,L]
RewriteRule ^wp-includes/js/tinymce/langs/.+\.php – [F,L]
RewriteRule ^wp-includes/theme-compat/ – [F,L]
</IfModule>
<Files wp-config.php>
order allow,deny
deny from all
</Files># BEGIN WordPress
# Die Anweisungen (Zeilen) zwischen „BEGIN WordPress“ und „END WordPress“ sind
# dynamisch generiert und sollten nur über WordPress-Filter geändert werden.
# Alle Änderungen an den Anweisungen zwischen diesen Markierungen werden überschrieben.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
I dont know if this tells you anything but all the help I can get on this very much appreciated.
Do you have any idea about what could be the problem?
Im happy to give you access to the wordpress or the FTP if you need it.
Thank you so much!
JEHJuly 5, 2024 at 12:42 am #30935This reply has been marked as private.July 5, 2024 at 2:32 pm #30937This reply has been marked as private.July 6, 2024 at 4:53 am #30938Hi,
Thank you for providing the information.
1. I can log in to WordPress. You mentioned that the old pictures appear, but I found that the pictures do not appear. Could you please confirm it? I can upload a new image, it also does not show.
2. I cannot log in to FTP. You did not provide the Port. I cannot log in using the default port number 22. It is also possible that some Hosts have restrictions on regions or IP for login. Please confirm.
Regards!
SeaTheme – FAQs – WordPress Customization – FacebookJuly 7, 2024 at 12:44 pm #30941This reply has been marked as private.July 8, 2024 at 12:34 am #30942Hi,Thanks
I can log in to FTP now. I have made many attempts, but all were ineffective. You mentioned that the cache can be cleared. Is it cleared from the host cpanel? Please clear it again. I found that all the files in the
uploadsdirectory are prohibited from access (the files in the themes directory are allowed to be accessed).There is another possibility that is to confirm the file ownership, and this needs to be fixed through the command line. Make sure the ownership of the
uploadsdirectory and its subdirectories is correct. Usually, the owner should be the user running the web server (such as www-data or apache).
chown -R www-data:www-data wp-content/uploadsIf it still doesn’t work, please try to look for the error log information to obtain more clues about why the access was denied. If Apache is used, its error log file is usually located at /var/log/apache2/error.log or /var/log/httpd/error_log.
Regards! SeaTheme – FAQs – WordPress Customization – Facebook
July 22, 2024 at 3:42 pm #30967Dear SeaTheme,
The issue is resolved! The problem was there was upload directory was connected to a different WordPress installation on the server.
Reconnecting it and updating the File Permissions did the trick!
Thank you so much for your time!
All the best
JEHJuly 23, 2024 at 7:08 am #30969Hi JEH,
I’m glad this issue has been resolved
Thanks for sharing, this may help other users.
Have a nice day!
Regards!
SeaTheme – FAQs – WordPress Customization – Facebook -
AuthorPosts
- You must be logged in to reply to this topic.
