Attempting to upgrade from GV1 to GV2, receive a fatal error. Cannot upgrade PHP

This topic contains 11 replies, has 5 voices, and was last updated by  Naveen Giri 4 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #524518

    lemonade
    Expired Member
    Post count: 18

    Good morning,

    I attempted to upgrade my Geodirectory plugin, which was a free, working plugin, to the version 2, as required in order to use the paid services which I purchased (I purchased the full kit of paid add-on subscriptions, for which I may not actually need to upgrade in order to use). I did a full backup of the site first, as well as of the database.

    I could not find the WP Easy Updates plugin, as it appears to have been deleted from the WordPress available plugins. So, I pressed the “update now” button on the plugins page instead. It appeared to have updated correctly.

    However, when I then click on the “activate” button, I get the following error message: “Fatal error: Can’t use function return value in write context in geodirectory/includes/post-functions.php on line 308”

    I looked at line 308, and I don’t know why it would have caused a fatal error. This website is running an older version of php, but cannot be updated without migrating to a new server on our hosting site, so it is stuck at php 5.6. Perhaps this issue is related to the upgrade method itself. I followed the instructions as best I could that are located at https://wpgeodirectory.com/docs-v2/geodirectory/upgrade-from-gdv1/

    There was no conversion notice, which was called for in Items 3 and 4 of “The Conversion” instructions, so I am unable to actually convert the old version into the new version.

    Please tell me how I can fix this issue, if there is a workaround I need to use, or how to fix it. If it cannot be fixed, how can I install the paid plugins into the old V1 version of the Geodirectory, as I will just return to the old plugin, which worked perfectly, I just need to be able to add the paid add-ons to this old plugin.

    Either way would be helpful, although of course I would prefer to have the newer version of the plugin. Thank you.

    #524536

    Kor
    Moderator
    Post count: 16516

    Hi lemonade,

    Thanks for your post. If you refer to the article here, it says to deactivate all GDv1 plugins https://wpgeodirectory.com/docs-v2/geodirectory/upgrade-from-gdv1/#conversion . Have you done that? If not, share your Website WP admin access here in private reply and we’ll check this out for you.

    Also, provide FTP access just incase the Website is stuck in the Fatal Error.

    #524545

    lemonade
    Expired Member
    Post count: 18
    This reply has been marked as private.
    #524547

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #524701

    lemonade
    Expired Member
    Post count: 18
    This reply has been marked as private.
    #524730

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    To start the upgrade you should remove the GDV2 copy and leave only a copy of GDV1 in a folder called /plugins/geodirectory

    Then follow the steps here: https://wpgeodirectory.com/docs-v2/geodirectory/upgrade-from-gdv1/#conversion

    #524865

    lemonade
    Expired Member
    Post count: 18

    Hi, that is exactly what I did first. When I did exactly that, I received a fatal error, as described in the first message. I did not delete the new folder that was created with the “updated” and not-working version 2 in it. I simply created a new geodirectory folder, put the backed up files back in it, and re-activated it. This was so that I at least had a working directory on the site.

    However, as described in the first post, the upgrade instructions did not work. I simply re-uploaded the backup, and then came to the forum to try to get the issue fixed. If I was to delete that GDV2 folder, and the one plugin I tried to install, then when I follow the instructions, the exact same fatal error occurs. This is not something I can do myself, as the upgrade instructions caused it to fail.

    As stated in the first message, the fatal error I received was “Fatal error: Can’t use function return value in write context in geodirectory/includes/post-functions.php on line 308:”

    This is why I posted the message on this support forum. The folder, which is marked “geodirectory-New-Version-Not-Working” can be safely deleted from the server, and if you then follow the upgrade instructions, you should be able to duplicate the fatal error that I received. I need to know why I got the fatal error, and how to actually upgrade the site. Your assistance in getting the upgrade working is greatly appreciated. Thank you.

    #524867

    lemonade
    Expired Member
    Post count: 18

    I went ahead and deleted both the GDV2 plugin, and the one plugin that I tried to install. So, now there is nothing on this server that is geodirectory except the V1 that won’t upgrade. Thanks!

    #525024

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #525073

    lemonade
    Expired Member
    Post count: 18
    This reply has been marked as private.
    #525178

    Kiran
    Moderator
    Post count: 7069

    Hi @lemonade,

    Still FTP credentials are not worked.

    Please provide FTP credentials again.
    FTP Host:
    FTP Port:
    FTP User:
    FTP Password:

    Kiran

    #525304

    Naveen Giri
    Moderator
    Post count: 1559
    This reply has been marked as private.
Viewing 12 posts - 1 through 12 (of 12 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount