Tinymce 404 error but file is on the server - php

I have a new Wordpress installation which works perfectly on localhost
However, the live version has an issue with TinyMCE
https://toytrainland.com/wp-includes/js/tinymce/wp-tinymce.php
Comes up with a 404 error. however, the file is on the server
How can I fix this?

It may be file permission issue, check your files should having 644 permission and all directories have 755 permission.

Related

Image 403 Forbidden Error

I have a website built with wordpress and uploaded on a linux server. It's been working fine for a long time, but yesterday my website started giving me 403 forbidden errors while loading image resources.
But when I open that resource in a new tab, it gets loaded successfully. Then I go back to my website, refresh it, and that particular image gets reloaded now.
I don't know what's going on. I need help.
Incorrect file permissions can cause 403 forbidden error. It makes your web server think that you do not have permission to access these files.
All folders on your WordPress site should have a file permission of 744 or 755.
All files on your WordPress site should have a file permission of 644 or 640
If you have ssh access you can change permissions using this command:
chmod -R 755 /var/www/html/yoursite
If you are using a ftp client like Filezilla you can select a folder, right click and then select File Permissions from the menu.
Also the 403 error is caused by a corrupt .htaccess file in your WordPress site.
You can generate a fresh .htaccess file by logging into your WordPress admin area and going to Settings ยป Permalinks page.
403 stands for permission denied. You need to check the permissions for those image.

After successfully moving our Magento installation, Magento doesn't log to /var/log anymore

We moved our Magento installation from one FreeBSD VPS server to another (8.2 to 10.0). After that, we can't see anything in Magentos /var/log/system.log anymore.
We have checked and re checked the permission (777) on /var/log/*
Whe have tried to enable logging in /index.php
We have checked the database => dev/log/active = 1
Whe have tried to change owner of system.log and exception.log
Where afraid something might be missing in PHP, maybe som extension? Or could it be permission on the local servers /var/log directory?
How can we produce an error, that should be logged to Magentos /var/log ?
make sure you root magento directory is writable and make sure apache user has permission to write file
Did you try to delete the old logs?
We had that problem - just renamed file and everything went okay.

When creating virtual-host, apache would work only with /var/www/html/ directory

I just moved from WAMP to LAMP, and can't figure out this problem that I am facing.
Whenever I create new vhost which is not in this directory /var/www/html/ i get a 403 forbidden message. (Permission are the same and there is an index file)
It seems to me that somewhere in Linux you specify a list of directories and apache works explicitly with those ones.
I use Apache 2.4.6.
I appreciate your help,
After checking the error log(vhost), I found this error message "search permissions are missing on a component of the path".
Meaning that one of the parent directories from where the vhost was located didn't not have search (+x) permission for the apache user.

Wordpress Error: A TimThumb error has occured

I've encountered an error after installing wordpress onto a new domain.
I've contacted the theme developer and have had no luck resolving the issue.
I receive the following error when i copy the image link:
Warning: touch() [function.touch]: Utime failed: Permission denied in /home/domain/public_html/wp-content/themes/folioway/core/thumb.php on line 190
Warning: Cannot modify header information - headers already sent by (output started at /home/domain/public_html/wp-content/themes/folioway/core/thumb.php:190) in /home/domain/public_html/wp-content/themes/folioway/core/thumb.php on line 413
A TimThumb error has occured
The following error(s) occured:
Could note create the index.html file.
Query String : src=/wp-content/uploads/2012/03/CoffeetabeBox-custom_web1.jpg&w=187&h=187&zc=1&q=90
TimThumb version : 2.8.2
I have not modified anything else aside from some CSS.
The thumbnails do not appear on the pages, however, the images do appear in lightbox.
I have set the permissions to the cache folder to 777, but this has not resolved the issue.
Any help would be greatly appreciates. Thanks.
It happened to me too, and this is the second time!
If you don't have time to discover why, but you want to keep it working, just rename, or delete your /cache folder; then, create a brand new /cache folder, set permissions to 777, and it will work again.
I found that the cache folder this is referring to is the one within the same folder as timthumb.php - find that file and the related cache folder and give the cache folder 777 permissions.
if you are on a linux based server,
first find the FILE_CACHE_DIRECTORY from the config file by (ex. in linux server open the file in vi commond)
vi /system/web/esupu/wp-content/themes/gadgetry-parent/framework/timthumb/timthumb-config.php
it could be like
define('FILE_CACHE_DIRECTORY', '../../cache/');
SO we change the cache folder ownership to user "www-data" which is the default user for Apache web server which runs this php codes,
sudo chown -hR www-data:www-data /system/web/esupu/wp-content/themes/gadgetry-parent/cache/
also, now better check if folder can be writable too (chmod permissions to 777)
Instead of using 777 as others have suggested, use 755 to the /cache folder.
I just delete the cache folder and refresh the page where code was, it started working.
I think it is the problem of file permission.
Headers already sent is usually a symptom of whitespace either at the beginning or the end of the file - check timthumb.php and make sure you have no blank lines or space either before the
The other possibility is that /wp-content/uploads/ is not writable by the web server, but I'd bank on the first one being the cause.
I added this to a php.ini file:
display_errors = Off
display_warnings = Off
output_buffering = On
TimThumb is a separate open source project that is used by many WP plugins.
If updating folder permissions doesn't work for you, another solution which worked for me was to update the plugin's TimThumb script with the most recent version. You can download it here:
https://timthumb.googlecode.com/svn/trunk/timthumb.php
In my case this file was in wp-content/plugins/events-manager/includes/thumbnails
For others that have this issue when using the FiatLux Wordpress Theme, as I am here is the solution:
Open FTP like Filezilla
Navigate to yoursite/wp-content/themes/fiatlux/includes*
Delete the cache folder
Recreate the cache folder, with permission setting 755
Download the updated timthumb.php file from GitHub and replace (I renamed the old one timthumb.old to test
If you use a Media server/ CDN, then be sure to add that site to the $ALLOWEDSITES array in TimThumb.php file
*If using another Wordpress theme, then find the TimThumb.php file and corresponding cache folder in that theme/ plugins folder in wp-content
in
src=/wp-content/uploads/2012/03/CoffeetabeBox-custom_web1.jpg&w=187&h=187&zc=1&q=90
try put a '?' between .jpg and &w, so it will be like this
src=/wp-content/uploads/2012/03/CoffeetabeBox-custom_web1.jpg?&w=187&h=187&zc=1&q=90

500 Internal Server Joomla

I changed the file permissions on all my files and directories in my Joomla site and I am getting the 500 Internal Server error.
What should be the right file permissions settings.
Thanks
What should be the right file
permissions settings.
You should be fine with permission settings set to 755.
Also, make sure that there is no issue if you have setup the .htaccess file.

Categories