Jump to content

Community not working after upgrading to PHP 8.x


Go to solution Solved by Jim M,

Recommended Posts

Posted

Sorry, we would need direct access to look at what we want here. We would not be able to go back/forth like you are suggesting.

I would suggest doing a few things right:

  1. Remove any custom redirect/rewrites on your server.
  2. Upload a fresh set of files from the Client Area. 
Posted
Just now, adekk said:

I don't have any special redirects there

I would suggest removing any but our own. You can see our .htaccess in ACP -> System -> Search Engine Optimization -> Rewrite URLs.

Posted (edited)

I don't know about any redirects to be honest. 

I disabled rewriting totally - same issue.

Edited by adekk
Posted

Uploaded all files from ZIP downloaded to client's area to my server. Overwritten all files. No changes. Not working :(

Posted

I need to check what's the best way to give you access. Currently it's not so easy because of security stuff (firewalls, ips etc)

Posted

Any errors? I'm able to login. Do you use SFTP client or SSH.SSH won't be working. 

On Mac I'm using for example Forklift. No issues.

 

Posted

I checked details. No errors. I just removed path since that user is chrooted to that directory already. Maybe that was a problem. 

Posted

Please ensure you test exactly what you provided as I am able to connect to the server but getting authentication error as mentioned:

 

Error:    Authentication failed.
Error:    Critical error: Could not connect to server

Posted (edited)

Hmm... maybe it's some global firewall settings in OVH. My guess. I tested credentials from different IPs - no issues. I'll check over some VPN. 

Edit: Yes. It's additional firewall form OVH. I checked connection from US. I'll ask them how to add your IP to whitelist (it's not server's (linux) firewall)

Edited by adekk
Posted

Thank you, I am able to connect now. Please ensure that our account has full read/write access though. The datastore directory is not allowing me to delete files.

Posted
2 minutes ago, adekk said:

Hmm... that user is in the www group, it should be working. I see there are group permissions... 

Permission denied on all files...

Posted (edited)

Just FYI. I checked logs. There's only one error:

AH01071: Got error 'PHP message: PHP Fatal error:  Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /var/www/(mysite)/public_html/system/Theme/Theme.php(885) : eval()'d code on line 1210'

Everytime you see 500 error. It's this error.

Edited by adekk
  • Solution
Posted

Something on your community is inserting a custom template called "row_adek" in Forums -> front -> global. This is causing your error and I have removed this from the "Default" theme and it is working now.

Posted (edited)

It was my custom row for ads in the past. But I reverted themes. How this is possible that this is still there.

 

Thank you very much! 

Honestly, I'm impressed with the support. I didn't except for example replies during NYD for example. 

 

BTW. How did you get to this. How can I (and others) detect issues like this? 

Edited by adekk
Posted (edited)

Edited my other themes: Fixed! (thas was my own template).

Once again, thanks! If you have any tips where to look in future to detect errors like this, maybe this will be helpful for other. I was sure reverting themes is also removing custom templates like this. 

Edited by adekk
Posted
12 minutes ago, adekk said:

BTW. How did you get to this. How can I (and others) detect issues like this? 

I honestly just compared what was showing up as modified in your themes to what templates were in an unmodified theme on one of my test communities. There is no logging for this because it is failing at the PHP side, just some creative troubleshooting 🙂 .

14 minutes ago, adekk said:

Thank you very much! 

Honestly, I'm impressed with the support. I didn't except for example replies during NYD for example. 

You're very welcome. Glad we could be of assistance and get this resolved for you 🙂 . 

  • 2 weeks later...
Posted

similar problem:

Jan 13 16:58:00 apache_error[78350]: [Fri Jan 13 16:58:00 2023] [error] [pid 96827] sapi_apache2.c(353): [client 108.162.221.49:36904] PHP Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /home/c/cv96675/public_html/uploads/template_17_ad9ae6e9ced8695954ac11f917afdfac_global.php on line 533

forum not working

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...