katamui
asked 6 years ago

I was working with a plugin that was giving me trouble and after consulting with the plugin developer it looks like the problem is an error in the post-form.min.js of the theme.
The console in Firefox shows “TypeError: wp.media is undefined”
Is this something that can be corrected?

2 Answers
DominicStaff
answered 6 years ago

I have checked your site. I can not find the issue with the post-form.min.js file on your site. Please let me know if you have resolved this issue.

katamui
answered 6 years ago

No, the issue continues. Here is a screen capture of the error in the Firefox console that appears when the site loads:

Dominic Staff
replied 6 years ago

I have checked in the Today: http://prntscr.com/hnrkua
I have checked your screenshot and I see that this is some issue in the WordPress core, I think you can update the WordPress to resolve this issue.

katamui
replied 6 years ago

My WordPress is up to date and the error persists. I re-installed WP to see if that would have any effect, but still the same error. However, I can add that the error is only triggered if the user is logged into the dashboard and viewing the site. No error if logged out of WP.

Dominic Staff
replied 6 years ago

Please send me username & password of your site for further checking.

Dominic Staff
replied 6 years ago

I have helped you resolve this issue, please check your site now. Also, please clear all your cache before checking the site.

Dominic Staff
replied 6 years ago

With all good wishes for a brilliant and happy Christmas season. Hope things are going all right with you 🙂

katamui
replied 6 years ago

Thanks for fixing the admin-scripts.min.js. That error seems to be resolved. I am still getting the error in post-form.min.js when viewing the site while logged into the WP dashboard. It’s not causing a major problem, just a bit of a conflict with a plugin which can be resolved by logging out, but if you can fix it that would be great.

Dominic Staff
replied 6 years ago

hi, I’m working on how to solve this, but the problem does not come from post-form.js, I’ve turned on the post-from.js file and fix the bug.

however, this problem not come from it. At first, which version you can make it works properly ?? WP version or theme version,

katamui
replied 6 years ago

Hi, sorry for the delay (I was on vacation last week). There is no version that I can change that I’ve found corrects the problem. As I said, it’s only occuring when I’m logged into WP,, but I’ve not found that it is related to a particular version fo the theme or WP.

mcutting
replied 6 years ago

Katamui – are you using Cloudflare by any chance ? If you do, check and see if the Rocket Loader is enabled, as this has a habit of breaking javascript.

mcutting
replied 6 years ago

Or if you are using any minify plugins, disable these and see if that resolves the problem.

katamui
replied 6 years ago

Thanks for the suggestions, but I’m not using any of those things. I have also tried disabling all the plugins that I am using and the error persists as long as I’m logged into the site. It’s not causing any real problems though so I’m not too worried about it… just thought if it could be fixed that would be for the best.

Powered by DW Question & Answer Pro