Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted July 11, 20222 yr I went to update my forums and when I did the upgrade stalled out. The message I'm getting is the following: I haven't done anything with that Db.php file in the past and didn't have the issue, I'm not sure why I'm having it now. I checked the settings for the file and I don't see any issues.
July 11, 20222 yr Please go to the Client Area and download a fresh set of files then extract these to your local computer. Once done, upload these to your server, overwriting what is there. Unfortunately, that file is either modified, out of date, or inaccessible by PHP. If the permissions are good on the file per your server's configuration, you will need to ensure it is not modified or out of date. I'm afraid, there is no other way to get around this safely.
July 11, 20222 yr Author So update ALL the files, all the system files folder files, or just the Db.php file? I just tried the Db.php file and it didn't work Edited July 11, 20222 yr by GreatAdventureHistory
July 11, 20222 yr You would only need to do Db.php . Please ensure it is in the correct directory, however 🙂 . If you continue to have issue, please update the access details on file in the Client Area: We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. We look forward to further assisting you.
July 11, 20222 yr Author It appears to be in the correct directory. I just updated the stored access information.
July 11, 20222 yr Author I just generated a new password and login and updated the stored access information again
July 12, 20222 yr Connection is being refused by the server. Its not actually getting as far as the credentials. I would say here however, you need to check that file, as its either not present or out of date.
July 12, 20222 yr Author I have now replaced the Db.php file three times and confirmed it was the correct location and version and each time the same issue has occurred showing the same error message. I don't know what else I can do.
July 12, 20222 yr Please check the owner of the file, not just the permissions. It may be owned by the wrong user, such as root or other. It should be owned by the same account that the other files in that folder are set to.
July 12, 20222 yr Author Where do I find the "Owner" of the file? I have checked several times now and the file is definitely the "new" version uploaded: I set the permissions to match what the previous version had:
July 12, 20222 yr You won't be able to see the file owner when using cPanel's file manager. The easiest way to see the file owner is to use an FTP client such as Filezilla (it's free) and view the directory listing where that file is located. The two values I obfuscated in red (since it's my install) are the Owner/Group. Make sure all files in that folder have the same owner and permissions. It's also possible your server is blocking that file for some reason, and if the file is there but set to 0000 permissions for example, you would have to talk to your Host.
July 18, 20222 yr Author OK-- I confirmed the owner/group and permissions are all correct. Still getting the same error message.
July 18, 20222 yr I am only seeing select files have been uploaded to your server from 4.7. Please go to the Client Area and download a full set of files then extract these to your local computer and upload the contents of the "ips_****" folder to your server, overwriting what is there. Once that is done, please go to /admin/upgrade and try the upgrader again.
July 19, 20222 yr You will need to contact your hosting company for assistance on this one. We are not seeing the file for some reason, which is why you are getting that message coming up. I suspect this may be something like opcache that is running, but your hosting company should be able to confirm
July 20, 20222 yr Author This is what their tech support said: " I have checked and see that the error 403 is due to this path Parse error: syntax error, unexpected '?' in /home/gah537/public_html/GreatAdventureHistory/Forums/system/Db/Db.php on line 120 you will have to review the file with the developer."
July 20, 20222 yr 7 minutes ago, GreatAdventureHistory said: This is what their tech support said: " I have checked and see that the error 403 is due to this path Parse error: syntax error, unexpected '?' in /home/gah537/public_html/GreatAdventureHistory/Forums/system/Db/Db.php on line 120 you will have to review the file with the developer." I’m a little confused by their statement here. A 403 error shouldn’t be caused by this. 403 would mean there is a permission error on the server and thus cannot access the file and therefore run. Could you please have them clarify?
July 20, 20222 yr Also to further build on what Jim is saying... https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403 A 403 code means the request was forbidden by the server. It does not trigger during code level execution. It's blocked on inbound access. (Meaning someone typed in www.yourdomain.com/some/file.php and the server blocked access to it for some reason such as mod_security or another firewall denying the request. Also as an aside... the line of code he's referencing (#120 of Db.php) is the same code that has been used before the upgrade. It's what tells PHP how to connect to mySQL. If it really was problematic, it would mean the board never worked even before attempting to upgrade and you could have never logged into the ACP in the first place. So that sounds to me like a BS answer from the provider that either does not know what they're saying or is just not wanting to look into it. Either way, it's not a correct answer from them.
July 20, 20222 yr Author So, they "investigated" again and now we're getting this error message:Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/gah537/public_html/GreatAdventureHistory/Forums/init.php on line 957 They say they had nothing to do with this issue now:I would like to inform you that we do not have n access to your file and content to make any changes as the system won't allow as due to security reasons. However, I can see that there are no issues with the server. The Syntax error is coding/scripting I request you to please check with your website developer on this to get this fixed., I hope you understand my limitations.
July 21, 20222 yr This is because your PHP version is set to PHP 5.6. The minimum requirement for the software is 7.4
July 21, 20222 yr Author So the version is re-set to 7.4 (like it had been before the GoDaddy Tech Support did something to it), and we're right back where we started with the same error of the Db.php file:
July 21, 20222 yr 5 minutes ago, GreatAdventureHistory said: So the version is re-set to 7.4 (like it had been before the GoDaddy Tech Support did something to it), and we're right back where we started with the same error of the Db.php file: Unfortunately, you would need to go back to their support as they did not resolve the problem which is at hand here.