WordPress.org

Ready to get started?Download WordPress

Forums

Ultimate CMS
javascript error generated by script.php (4 posts)

  1. James Revillini
    Member
    Posted 2 years ago #

    Hey dude! Great job on the new plugin. I just found one little issue having to do with include paths in script.php. It generated a php error which causes the javascript to not process, both on front and back end.

    Here's the fix for the first lines of script.php: http://pastebin.com/EE5wUvag

    http://wordpress.org/extend/plugins/ultimate-cms/

  2. James Revillini
    Member
    Posted 2 years ago #

    BTW I should have stated those were while in the admin.

    I have a couple more errors when viewed as a visitor:

    <b>Warning</b>: Invalid argument supplied for foreach() in <b>/.../wp-content/plugins/ultimate-cms/post-type/class-xydac-post-type-functions.php</b> on line <b>38</b>

    <b>Warning</b>: Invalid argument supplied for foreach() in <b>/.../wp-content/plugins/ultimate-cms/page-type/class-xydac-page-type-functions.php</b> on line <b>27</b>

    The fix is to have the get_active_{whatever}_types() function return an empty array if no custom post/page types are found. (I have not defined any yet)

    fix for post types: http://pastebin.com/yADXVLr3
    fix for page types: http://pastebin.com/RJPUDgxq

  3. James Revillini
    Member
    Posted 2 years ago #

    And another one caused in admin: "Uncaught TypeError: Cannot read property 'value' of null" caused by script.php, line 2006:

    CodeMirror.fromTextArea = function(textarea, options) {
        if (!options) options = {};
        options.value = textarea.value; //textarea is null sometimes!

    Since this gets into the CodeMirror code and I don't know where it's called from, I'll probably leave this one to you. But I'll tell you this - I got the error while managing widgets.

  4. XYDAC
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for these updates, I'll make the changes and have the updated version out asap.

    -Xydac

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic