Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Dan

    (@cmdntd)

    This is from my console:

    Uncaught ReferenceError: jBox is not defined
        at HTMLDocument.<anonymous> (<anonymous>:3:16)
        at e (jquery.min.js?ver=3.6.0:2)
        at t (jquery.min.js?ver=3.6.0:2)
    ? JQMIGRATE: Migrate is installed, version 3.3.2
    load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate&ver=5.8:5 JQMIGRATE: Migrate is installed, version 3.3.2
    jquery.block.js:833 Uncaught TypeError: Cannot read property 'focus' of null
        at CJTBlockPluginBase.focus (jquery.block.js:833)
        at Object.addBlock (blocks-page.js:433)
        at Object.<anonymous> (add-new-block.js:80)
        at Object.i (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate&ver=5.8:2)
        at c (jquery.min.js?ver=3.6.0:2)
        at Object.fireWith [as resolveWith] (jquery.min.js?ver=3.6.0:2)
        at l (jquery.min.js?ver=3.6.0:2)
        at XMLHttpRequest.<anonymous> (jquery.min.js?ver=3.6.0:2)
    Plugin Author wipeoutmedia

    (@wipeoutmedia)

    Hello there,

    Sorry for the delay in getting back to you.
    This is an interesting issue, which we have never seen before. Code blocks must have unique names and if it detects that the same code block name exists, then a new code block cannot be created. So it is strange that another code block was created or duplicated. Are you still seeing this?
    Also, when deleting code blocks, you need to press the Save or Save All button so it takes effect otherwise refreshing the CJT dashboard page without doing so, the code blocks will show again. That said, it sounds like when deleting the code blocks, it does not actually disappear at all, which is strange. Thank you for posting the error. This may help us dig deeper.

    Thanks

    Thread Starter Dan

    (@cmdntd)

    Thank you, I reply late because I do not receive notification of your reply through email
    I will test “save button” for this.
    Do you have any upgrade for this bug?

    Plugin Author wipeoutmedia

    (@wipeoutmedia)

    Hello,

    Thank you for the follow-up. Now it is my turn to apologise for the delay in replying.

    How did you go with ‘saving’ the code blocks?

    Also, if you can send us an email directly from our CJT website, we will be able to respond quicker.

    Thank you

    Plugin Author wipeoutmedia

    (@wipeoutmedia)

    Hi there,

    We have resolved this one, which will be coming in the next update (version 11.5).

    This may have been an edge case with the latest version of MySQL (v8).

    Even then, the code logic to get the latest ID for the new block needed a rewrite, which was the main reason that new blocks were getting assigned an old, existing block ID.

    So we have reworked that function and that fixed the issue. It was initially fetching the “revision block” ID for the newly created block and that’s why there was an error for duplicate entry.

    Initial testing is positive, and everything is working well.

    Thanks

    Plugin Author wipeoutmedia

    (@wipeoutmedia)

    Hi there,

    I am just letting you know that CJT version 11.5 has now ben released with the following changes:

    * Compatibility: PHP version 8+
    * Compatibility: MySQL version 8+
    * Fix: Duplicate ID issue, which on rare occasions was fetching the ‘revision block’ ID for a newly created block causing an error for duplicate entry
    * Enhancement: If the ‘wp-content’ directory is renamed to something different (e.g. ‘content’), CJT will now find any custom content directories and install correctly.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Duplicate id error’ is closed to new replies.