WordPress Post Content Submission

I am struggling with a bug in WordPress 3.8.1.

Whenever I try to upload media to a message, it is not added, it says An error occurred in the upload. Please try again later. An error occurred in the upload. Please try again later. .

But stranger is that it appears on the toolbar / media / library even after this problem.

I also can not see the downloaded attached materials in my messages (edit the message / [add media button]) / media library / upload to this post, but in the panel / media / library section these old downloaded images are displayed correctly, which is loaded in what post.

I tried the following:

  • Reinstall my local version and en_US both from the update manager and manually.
  • The wp-includes and wp-admin folders are wp-includes and manually replaced.
  • I checked chown and chmod in the wp-content/uploads . To make sure that they work, I deleted the wp-content/uploads/2014 folder, and after the first download that shows this error, the folder is created with the right chown and chmod, and there were files ( wp-content/uploads/2014/01/26/file with resolutions.jpg )
  • I removed unnecessary plugins, deactivated all plugins and themes, switched to the default WordPress plugin, I even reset the active json object plugins in wp_options from SQL, it didn’t help.
  • I have included php error logs, nothing is shown
  • I changed the definition of WP_DEBUG to true , I even defined WP_DEBUG_DISPLAY - true , it didn’t help.
  • When I try to add from wp-admin/media-new.php using the multi-user bootloader, the file is frozen with the “ Crunching… ” step, but loading the old browser works flawlessly.
  • I run VPS and host the blog myself with CentOS 6.5 x64. safe_mode set to off . There is no mod_security option in my php.ini. My upload_max_filesize in php.ini set to 20M , memory_limit is 256M , only 3 sites are hosted, and the memory is pretty empty during testing. This also happens even with 50kb.jpg images, so this should not be related.
  • I reloaded all Wordpress files from a clean downloaded zip file, without help.
  • I tried adding AddType x-mapp-php5 .php .php4 to the end of .htaccess , as suggested here , which didn't help at all.

The fact is that I tried a clean installation in a different domain on the same server, it works as it should.

What could be the problem? How can i fix this?

Thanks in advance,

+6
source share
8 answers

See if the custom message type has any files that are in UTF-8. If you change it to ANSI, this should help if this is a problem.

+1
source

I had the same problem and I found that the problem is with my theme itself ... try to do the same action using the 20ten theme. if this works, then look and see if there is any conflicting code in the function. php themes ...

If you use a child theme, I can suggest creating another child theme or use an alternative, as in my experience, not all how topics are used as a child ...

0
source

If you are trying to load into a custom post type, change the feature_type parameter in the functions.php file to "post" and it should fix your problem.

0
source

Check the permissions of the wp-content or wp-content / upload folders if the folder resolution is not 755, then change it to 755 and download again. I hope this solves your problem.

0
source

I ran into the same issue in Wordpress as media not loaded in the popup. then I decided.

I think several times the problem created with the ajax response. Means ajax response comes with some additional content.

Wordpress popup pops up content using ajax (json Response), and ajax gives an answer with some content, like style and others.

Example: -

 <style> .class{} </style> then json(ajax response). 

So first check your ajax answer in the console. We need to disable all plugins and then check if it works or not. If not, activate the default theme. because the content comes from the plugin and theme.

0
source

If you use a low-level server and add a plugin named " WP-SmushIt ", it will definitely cause an error. The reason is simple because this plugin uses CPU resources to minimize image size during its optimization, and therefore it crosses a limited server runtime. The solution is simple -> Go with higher-level servers, or try changing the server runtime specified in the php configuration file.

0
source

It is not directly related to this, but I encountered the same problem after I moved the same site to another server. The only difference is that I am now using Nginx instead of Apache. I checked the owners before, and they were all correct (otherwise normal loading will not work before). I leave this here as a link.

The fix in my new case was a simple change in ownership of the web root and all the files inside.

Nginx and PHP5-FPM work with the same user: www-data , which is in the group with the same name: www-data .

Thus, a change in all ownership of files recorded in this case:

 su chown -R www-data:www-data /path/to/wordpress/root/ 

And the problem has disappeared.

I still do not know the original cause of my old problem, I had to wipe, start from scratch and restore messages, plugins, etc. from scratch.

0
source

check the folder permissions and mod_security parameters, also try to increase max_execution_time and memory,

-1
source

All Articles