Viewing 10 replies - 1 through 10 (of 10 total)
  • I’m getting the Maximum call stack size exceeded error trying to set a featured image. I can choose an image but the set featured image button is disabled and when I look at the chrome console it displays Maximum call stack size exceeded and points to a media library assistant plugin script.

    Plugin Author David Lingren

    (@dglingren)

    @austin Ginder, Thanks for your report and especially for including the workaround and screencast of your process; very helpful. It looks like you are using MLA version 2.22, which is a few versions behind the version.

    I downloaded and activated Download Monitor version 1.9.4 by Never5. All of my testing with MLA v2.25 (the current version) has been successful. I am not able to duplicate your problem with the current MLA version. I have made some changes in the mla-media-modal-scripts.min.js script in the newer versions and these may have solved the problem.

    Can you update your system to MLA v2.25 and try again? If the problem is still present I will investigate further. Thanks for your help and for your patience.

    @rw1007, It sounds like you are having a different problem, but it is hard to tell from the brief message you posted. If you are NOT using Download Monitor, could you start a new topic and give me more information about which WordPress and MLA version you are using? Any additional information you can supply will help me to resolve your problem more quckly. Thanks!

    Thread Starter Austin Ginder

    (@austinginder)

    @david Lingren Ah the screencast and version 2.22 was only a coincidence as I was testing various versions. The same issues happen for the tested versions: 2.22, 2.24 and 2.25. I can confirm, with the updated version 2.25, I’m still seeing this error.

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update and for the additional information. I have not been able to reproduce the problem on my test system, but I have made a change in the way the AttachmentCompat and Selection objects are initialized that may help.

    I have uploaded a new MLA Development Version dated 20160525 that contains the changes. To get the Development Version, follow the instructions in this earlier topic:

    Shortcode not working in (special) widget

    It would be great if you can install the Development Version and let me know how it works for you. Of course, if any other problems emerge I want to know about them as well.

    Be sure you clear the browser cache or refresh the page to make sure you get the updated scripts.

    If the problem still occurs, you can make a change in your wp-config.php file that might provide additional information. Add this line towards the bottom of the file:

    define('SCRIPT_DEBUG', true );

    That will load the uncompressed version of the scripts and the error messages may indicate the line in the script causing the error.

    Finally, let me know if you are using the Advanced Custom Fields plugin. Another MLA user has reported similar problems in this topic:

    Uncaught RangeError: Maximum call stack

    “Actually I think this maybe an issue with the latest version of the Advanced Custom Fields Pro plugin.”

    Thanks for your patience and your help with this problem.

    Thread Starter Austin Ginder

    (@austinginder)

    Ah confirmed. It’s ACF. I temporary disabled ACF 5.3.8.1 and the issue went ahead. Reenabled and it’s back.

    After enabling SCRIPT_DEBUG I’ve pinpointed the error down to this line: https://cloudup.com/cTuj2DZIH9l. Here is a copy of the error: mla-media-modal-scripts.js?ver=2.25:1247 Uncaught RangeError: Maximum call stack size exceeded

    Thread Starter Austin Ginder

    (@austinginder)

    Just installed the development version of your plugin and can confirm everything is working with ACF Pro and Download Monitor. Thanks!

    Plugin Author David Lingren

    (@dglingren)

    Thanks for all your detective work and for the good news regarding the Development Version. Line 1247 is exactly the line I changed in my attempt to resolve the problem.

    There is no official, documented way to extend the Media Manager Modal (popup) Window. Plugins like MLA and ACF use a variety of techniques and sometimes step on each other’s toes/code.

    I will mark this topic resolved when the MLA fix goes out in the next update. If anything else comes up, let me know.

    Having this exact same problem after last ACF update, and had to temporarily disable MLA (the entire site is built around ACF, so disabling that was not an option). When do you think the next updated version of MLA will be released?

    Plugin Author David Lingren

    (@dglingren)

    @maijabrazen,

    Thanks for your report. It’s going to be at least a week or so before the next MLA version. In the interim I encourage you to download and try the Development Version to confirm that your problem is solved by the fix I added there. If that’s not possible, you can avoid the problem and still use most of MLA by disabling the features that conflict with ACF. Go to the Settings/Media Library Assistant General tab and scroll down to the checkboxes shown in Austin’s first post in this topic. Uncheck the two options, scroll to the bottom and click Save Changes to record the new settings.

    One of the two alternatives should give you some relief while I complete the next version. I regret any inconvenience caused by the delay. Thanks for your understanding, patience and interest in the plugin.

    Plugin Author David Lingren

    (@dglingren)

    I have released MLA version 2.30, which contains a JavaScript fix for this problem.

    I am marking this topic resolved, but please update it if the problem persists in the new version. Thanks for your patience in awaiting the new version.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Uncaught RangeError: Maximum call stack with Download Monitor’ is closed to new replies.