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-
AuthorPosts
-
January 7, 2020 at 5:37 pm #524518
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.
January 7, 2020 at 7:33 pm #524536Hi 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.
January 7, 2020 at 8:55 pm #524545This reply has been marked as private.January 7, 2020 at 9:34 pm #524547This reply has been marked as private.January 8, 2020 at 8:29 pm #524701This reply has been marked as private.January 9, 2020 at 3:00 am #524730Hello,
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
January 9, 2020 at 4:08 pm #524865Hi, 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.
January 9, 2020 at 4:12 pm #524867I 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!
January 10, 2020 at 11:10 am #525024This reply has been marked as private.January 10, 2020 at 4:41 pm #525073This reply has been marked as private.January 11, 2020 at 11:14 am #525178Hi @lemonade,
Still FTP credentials are not worked.
Please provide FTP credentials again.
FTP Host:
FTP Port:
FTP User:
FTP Password:Kiran
January 13, 2020 at 7:29 am #525304This reply has been marked as private. -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket