Error
-
“Uncaught TypeError: Cannot read property ‘forEach’ of undefined (admin-3-16-4.js”
The page I need help with: [log in to see the link]
-
Hi @checmark,
Can you provide some context?
That was the error I received after adding the photos. I didn’t see anywhere to do an attachment of the error.
You can upload a screenshot somewhere like Google Drive or Dropbox. Otherwise you can use a service like https://prnt.sc/ too.
Can you look into the browser console for any other error messages? Refresh the page a couple of times to see if anything shows up.
Sorry. Not following you. I have Google Drive but don’t know how to upload from there. I reported the exact wording of the error. Not sure how the graphic would help.
Hi @checmark,
Not sure how the graphic would help.
It’s part of the debugging process. Usually there are other error messages in the browser console and more information such as line numbers, etc.
No one else is reporting this error so in order to figure out what is unique to your setup we have to start from the top and eliminate the obvious.
The error message alone isn’t helpful “‘forEach’ of undefined” but we need to figure out what is undefined.
Most often it’s a conflict with another plugin. Can you disable other plugins to see if the issue is resolved (this is the second step in debugging)? If it’s resolved, you can enable them one by one (or in groups) to isolate the plugin in conflict.
You also might get a better error message by enabling debug mode. In wp-config.php you can add or update this line
define( 'WP_DEBUG', true );and also add this one:define( 'SCRIPT_DEBUG', true );Let me know if you have any questions.
Have used this plugin for a very long time and never had any issues. It might have come from the 500 plus photos I uploaded to the gallery. I’m now uploading a few at a time but I can’t find where to sort them. I wanted an alpha sort by the file name.
Appreciate your help.
I’ve only added about twenty of more than 500 photos. Running the preview but it’s been sitting there for more than ten minutes or so. ??
How do I sort the photos by filename?
New error – “Cannot read property ‘style’ of null”
Hi @checmark
Did you have any luck with the suggestions I made above?
Many users have thousands of images so that’s probably not the issue.
If it’s slow uploading a bunch of images directly to MetaSlider you can first upload them directly to the media library, then select them from the slideshow. We use the built in system.
No. Seems like I can’t get any slider that works. Numerous issues with NextGEN and others. Just tried to use Smart Slider again but they have way to bulk upload or sort. They expect me to laboriously upload one images at a time when I have more than 500 to add. Then they have no way to sort, for example, on filename. Even the drag and drop doesn’t work properly.
Very frustrating that I can’t find a simple slider that works.
Hi @checmark
“Uncaught TypeError: Cannot read property ‘forEach’ of undefined (admin-3-16-4.js”
Do you still see this error? I took a closer look at that file and the forEach runs against images that are returned from the server. That it’s “undefined” indicates that your server is sending bad data back over the wire (probably an error message).
Can you open the browser dev tools and when that error show check on the network tab to see what the response is?
Let me know if you need more specific instructions.
Hi,
I’ll mark this as resolved as we didn’t hear back, but feel free to reply if needed.
The topic ‘Error’ is closed to new replies.