• Resolved X-Raym

    (@x-raym)


    Hi,

    called to undefined function blocksy_image PHP error (breaking site) since v2 update,

    I used this function from a child theme file overriding the archive-card.php file. My file was based on this.
    As child theme is a core feature of WordPress, would be nice to have fallback to functions at update, if they are renamed or removed.

    Thx !

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter X-Raym

    (@x-raym)

    the update has broke other things here and there, like global CSS variable etc. I tried to revert to previous versions cause it is a lot of small things to correct but it breaks as well probably due to “database clean up” with the v2.0 (not sure).

    Hello @x-raym

    Indeed, we have renamed a few things in the 2.0 update, but that has been strictly done to increase compatibility with other popular software.

    Most of these changes have been actually announced through our social channels, but we promise these will be even more proeminent for the next updates that will change such things.

    Thanks.

    Thread Starter X-Raym

    (@x-raym)

    I managed to fix my website. it was mostly renaming my use of CSS global variables (which I ise a lot to theme things) to match new nomenclature, and recreating my .php file child them time, commiting my changes (fortinately dicumented) to the new version of the related files. This was manually work for which my website had to be done for several hours after the v2.0 update.

    As this was major version released, I do understand that it do implies that some backward compatibilies could occurs but indeed, there was no way to see what would need to be updated without making the website actually break.

    I let you know cause maybe some of these issues could have bern handle. For eg, there was an function which called the post feature image which was removed, and which was called inside the archive-card php, so it breaks my posts pages including home page, as it was based on previous version of archive-card. This function could have a callback to at least not break the pages IMHO.

    Thread Starter X-Raym

    (@x-raym)

    Anyway, thx for v2 optimisation and work ! ??I close the ticket as I have fixed my child theme.

    Hi @x-raym,

    I understand the pain for sure here, but if you take a step back and look at the bigger picture, you will see only good improvements that set Blocksy for the next few years.

    Glad you enjoy the update. ??

    Take care!

    Hi @x-raym,

    Could you please tell me how you’ve fixed the blocksy_image function?

    I can’t find the substitute to this legacy function.

    Thanks ??

    Nicolas

    Hello @dusauton

    It should be blocksy_media().

    Hi @cteduard,

    thanks for the answer. Where can I find this kind of information? I checked the changelog, but I couldn’t find anything about the changes related to this function… thanks!

    Nicolas

    Hello @dusauton

    This isn’t in the change log as we give it out on a per-request basis, depending on the use case.

    Thanks.

    Hi @cteduard,

    Thanks for your answer. But how can I ensure the backward compatibility of all functions I use on my website if the changes made to these functions don’t get published as part of the changelog?!

    Hello @dusauton,

    We give these out on a case by case basis. ??

    Thanks.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘called to undefined function blocksy_image after v2.0 update’ is closed to new replies.