Replacing image/Doc is not working
-
Replace Media Upload is not working. getting error
The application did not respond in time.
-
Hi there,
It would be helpful if you could provide us with some additional information, including:
- Screenshots or a screen recording that show the issue in action. If possible, please include relevant links as well.
- Your site information. Please navigate to Tools > Site Health > Info, click on the “Copy site info to clipboard” button and paste the information in your reply.
- Is the issue occurring in more than one web browser (Chrome, Firefox, Edge, Safari, etc.)?
- Is the issue occurring when all the other plugins are deactivated?
Thank you,
Hi Support,
Please find attached screenshot:
Step wise: in last when i am submitting, It’s showing error message:It’s showing screen The application did not respond in time.
But when going back it’s replaced image behind error screen.Could you suggest me , how can i hide or remove screen The application did not respond in time



On error log, i am getting following
[23-Jun-2023 11:09:57] WARNING: [pool www] child 94, script ‘/code//wp-admin/upload.php’ (request: “POST /wp-admin/upload.php?page=enable-media-replace/enable-media-replace.php&action=media_replace_upload&attachment_id=483997&_wpnonce=5c5f15d449”) executing too slow (6.366416 sec), logging
[23-Jun-2023 11:09:57] NOTICE: child 94 stopped for tracing[23-Jun-2023 11:09:57] NOTICE: about to trace 94[23-Jun-2023 11:09:57] NOTICE: finished trace of 94tail -f php-slow.log[0x00007f9771015cf0] get_results() /code/wp-content/plugins/enable-media-replace/build/shortpixel/replacer/src/Replacer.php:209[0x00007f9771015ba0] doReplaceQuery() /code/wp-content/plugins/enable-media-replace/build/shortpixel/replacer/src/Replacer.php:184[0x00007f97710159f0] replace() /code/wp-content/plugins/enable-media-replace/classes/Controller/ReplaceController.php:251[0x00007f97710157e0] run() /code/wp-content/plugins/enable-media-replace/classes/ViewController/UploadViewController.php:87[0x00007f97710156f0] load() /code/wp-content/plugins/enable-media-replace/classes/emr-plugin.php:235[0x00007f9771015640] route() /code/wp-includes/class-wp-hook.php:308[0x00007f9771015560] apply_filters() /code/wp-includes/class-wp-hook.php:332[0x00007f97710154f0] do_action() /code/wp-includes/plugin.php:517[0x00007f9771015410] do_action() /code/wp-admin/admin.php:259[0x00007f9771015250] [INCLUDE_OR_EVAL]() /code/wp-admin/upload.php:10
Nevermind, I was reporting a similar problem, but I tried your plugin on a test server and it worked, so this is edited to reflect my discovery.
Great plugin, sorry to bother you, but there’s no delete. Thanks much.
-
This reply was modified 3 years, 3 months ago by
msarns.
Hi @sunil89mca,
That might be related to your server because that kind of replace should be done with no issues. In fact, we have tried to reproduce it in many different hosting providers, and the replace always works great.
Could you please ask your hosting provider for further information? Maybe they have some logs they can check, or something similar.
Thank you,
Hi Gerard Blanco ,
Thanks for reply. Yes it’s working on other server But not in pantheon server. On pantheon server upload dir is outside of wordpress?
Path is : /files Insted of /wp-content/uploads/
Any suggestions would be appreciable.
Do i need replace upload dir page if yes then which file.Please guide me.
Thanks,
Sunil
Hi Sunil,
Our team will reply to you soon.
Best,
Hello @sunil89mca,
We had some similar issues on Pantheon with another plugin of ours and in short, any file operations are terribly slow. I tend to believe it is connected to the way the Media Library files are mounted on their systems.
I believe the best way would be to contact their support and ask about this, since there isn’t really much we can do about it. Maybe there are some security reasons why the file operations are so slow and some exclusions could be done for Enable Media Replace to work properly. Unfortunately we won’t be able to support much, because the plugin needs to do file operations in order to replace the needed file(s), so this is pretty much out of our hands.
Thanks, please let us know if you get any relevant response from them!
The topic ‘Replacing image/Doc is not working’ is closed to new replies.