• Resolved AWOL

    (@awol)


    I don’t know why this happened as I have been using the Table of Contents block for some time, but suddenly I couldn’t access the edit screen for the page I am using it on. Turned on Debug log and this was the message:
    PHP Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given in /home/awolonl1/public_html/wp-content/plugins/essential-blocks/includes/Blocks/TableOfContents.php:286
    The only thing I did between my last visit to that edit screen and this occurring was install and activate a plugin called Advanced Link Block, so the first thing I did was to deactivate it, but the error still occurs. If I turn off the TOC block in the Blocks settings I am able to access the edit screen for that page, but obviously I want to use that block, so can this be fixed please?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Amin

    (@amin7)

    Hi @awol

    Greetings!

    Sorry for your experience, but, we could not replicate the issue on our end with the latest version of the plugin. Could you please share the version number of the plugin, please also share the PHP version of your site. Share the page link where you are getting the error.

    Looking forward to hearing from you.

    Thanks

    Plugin Support Amin

    (@amin7)

    Hi @awol

    Greetings!

    I got an update from the dev team. As you are getting a fatal error, so, please disable the Table of content block (TOC) from the Essential Blocks settings. The error should be gone, and  then please go to page > open editor, copy the page from code editor and share codes with us using pastebin or codefile.io. It will help us to investigate and reproduce it on our side.

    Also, based on the error message our dev team provided a fixation, please download the plugin from here, https://d.pr/f/0Oafm8 and replace it with your current upload.

    Let us know the status. If the error gone by using our shared plugin, still it will be good if you share the page code file with us, as we could not replicate the issue on our end, it will be helpful for us to investigate the sceanrio.

    Looking forward to hearing from you.

    Thanks

    Plugin Support Amin

    (@amin7)

    Hi @awol

    Greetings!

    We have not heard from you since our last reply. Are you still facing the error with the dev version I shared? Also, please share the codefile with us, that we asked for.

    Looking forward to hearing from you.

    Thanks

    Thread Starter AWOL

    (@awol)

    Hi @amin7,

    Sorry for not getting back to you but I had to construct another way to achieve what the block did and have deleted the TOC block from the page. I am in the middle of some quite intense website building on a deadline, so I currently don’t have time to try your code or carry out the code share but will when time allows if I am able to do what you say, although I have never seen the option to copy the code of the entire page before in the theme I use (Blocksy), only individual blocks, and everything installed is the most recent version. I am using php 8.1 in case that makes any difference.

    Plugin Support Amin

    (@amin7)

    Hi @awol

    Greetings!

    Well, I checked again on my side with Blocksy theme and the latest version of Essential Blocks plugin, but, I could not replicate the error on my side, you can check here, https://d.pr/v/XH2jCz

    And, based on the error message, our dev team shared a plugin, which you may use on your site, just to check whether the error appeared on not. If this is not troublesome, you just need replace your current Essential Blocks plugin, with this dev version, https://d.pr/f/0Oafm8

    Regarding the code of the page, actually its not theme specific, you can use it from Gutenberg supported any WordPress site, please check here, https://d.pr/v/khbYeT (go to page > open editor, copy the page from code editor and share codes with us using pastebin or codefile.io)

    The code we are asking for is to create the sceanrio on our end, as the error is not aperaring on our environment, it will be helpful for us, we have checked in different PHP version as well. So, please take your time, if you get the chace, kindly share the details we asked for. 😊

    Thanks & regards

    Plugin Support Amin

    (@amin7)

    Hi @awol

    Greetings!

    We have released a new update of Essential Block (5.6.2). The dev version previously shared with your is now officially released. So, you dont need to use the previously shared plugin, please update the plugin to the latest version.

    Let me know how its going.

    Thanks

    Thread Starter AWOL

    (@awol)

    Unfortunately I have to report that I have had to deactivate and remove your plugin entirely from my site – I don’t know what the exact cause was, but I was getting many errors on post/page edit screens, and huge spikes in CPU and Memory usage on my host, that were resolved by deactivating the plugin, and seemed particularly connected to your post query blocks, but also a number of other ones. This may have been caused in conflict with another plugin or plugins, but I had neither the time nor the inclination to look further into it to discover the exact root of it, as replacing all the blocks has delayed me enough already. I do believe though, if it is of any help, that it is connected to the number of API calls that your blocks/plugin is making, which was overwhelming my server limits (in combination with other plugins and WordPress itself). It was causing 503 errors all over the place.

    Plugin Support Ashikur Rahman

    (@ashikurwp)

    Hi @awol ,

    Thanks for the update — we’re sorry to hear you had to remove the plugin.

    We understand how frustrating performance issues can be, especially on a tight schedule. Your feedback about the possible API call overload and conflicts is very helpful, and we’ve shared it with our dev team for further investigation.

    If you’re ever able to revisit this in the future, we’d be happy to assist in troubleshooting and optimizing the setup for better performance.

    Appreciate your time and input!

    Best regards,

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Fatal Error with Table of Contents’ is closed to new replies.