Support » Plugin: PHP Everywhere » Moving to the new version

  • finallyfoundausernamenotusedbefore

    (@finallyfoundausernamenotusedbefore)


    Hello,

    I operate a large web site which uses php_everywhere extensively.

    I have had to learn all about blocks and I now know how to create a new-style Gutenburg block and enter the necessary PHP data.

    But I cannot find out how to extract the code from the old system to paste it into the new blocks. Could you advise where I can find this info?

    Many thanks,

    John

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi, I also would like to know.
    I scanned all my database, no trace of my PHP code.
    What’s the name of the table your plugin used to store the code in old versions?

    Plugin Author Alexander Fuchs

    (@alexander_fuchs)

    Hi Flankerator, hi finallyfoundausernamenotusedbefore,

    the plugin used to store the plugin as page meta data. Was the setup wizard not able to find the code automatically?

    If not you can roll back to 2.0.3 (just download it from https://wordpress.org/plugins/php-everywhere/advanced/ and install it – no need to uninstall version 3.0.0). You can then copy the code again. The 3.0.0 version of the plugin does not delete the code you already have, it just can not display it anymore.

    Let me know if this helps,

    Alex

    Thread Starter finallyfoundausernamenotusedbefore

    (@finallyfoundausernamenotusedbefore)

    Hi Alex,

    Thanks for that, very useful.

    I temporarily restored my site to pre-version 3 using a backup (I couldn’t find the code to use in version 3, the setup wizard only seemed to list the pages concerned), so would I be right to say this is the best way to go about it?:

    1. Upgrade to v3
    2. Manually installv2.0.3
    3. Copy code into new blocks on pages concerned
    4. When happy, uninstall 2.0.3

    Sorry if I sound a bit dim, but I don’t want to break anything and end up restoring another backup.

    Many thanks,

    John

    Plugin Author Alexander Fuchs

    (@alexander_fuchs)

    Hi John,

    this would be the right way to upgrade.

    Best,

    Alex

    Thread Starter finallyfoundausernamenotusedbefore

    (@finallyfoundausernamenotusedbefore)

    Thanks, Alex – regrettably that method didn’t work for me. Manually installing the old version did not reveal any code for me. Maybe I’m plain incompetent but if anybody else is as stuck as I was, this is how I solved it:

    1. Went through the wizard that comes with v3 and noted each page that was listed for upgrade
    2. Reverted to old version by restoring backup (again)
    3. Copied the code to a text file for all pages (there were 434, but fortunately about 400 of them used the same code routine)
    4. Upgraded php_everywhere to latest version
    5. Used the wizard to access and edit each page affected and added the code I had noted.

    A long and tedious process but we got there after a day and a half.

    John

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.