Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Jim M Posted January 1, 2023 Posted January 1, 2023 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: Remove any custom redirect/rewrites on your server. Upload a fresh set of files from the Client Area.
adekk Posted January 1, 2023 Author Posted January 1, 2023 I don't have any special redirects there I'll do point 2 (unpacking files on the server)
Jim M Posted January 1, 2023 Posted January 1, 2023 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.
adekk Posted January 1, 2023 Author Posted January 1, 2023 (edited) I don't know about any redirects to be honest. I disabled rewriting totally - same issue. Edited January 1, 2023 by adekk
adekk Posted January 1, 2023 Author Posted January 1, 2023 Uploaded all files from ZIP downloaded to client's area to my server. Overwritten all files. No changes. Not working :(
Jim M Posted January 1, 2023 Posted January 1, 2023 Please provide SFTP/FTP access and we can perform a courtesy look at what is happening here.
adekk Posted January 1, 2023 Author Posted January 1, 2023 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)
Jim M Posted January 2, 2023 Posted January 2, 2023 16 hours ago, adekk said: Adding SFTP access Unfortunately, authentication is not valid. Please verify and update.
adekk Posted January 2, 2023 Author Posted January 2, 2023 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.
adekk Posted January 2, 2023 Author Posted January 2, 2023 I checked details. No errors. I just removed path since that user is chrooted to that directory already. Maybe that was a problem.
Jim M Posted January 2, 2023 Posted January 2, 2023 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
adekk Posted January 2, 2023 Author Posted January 2, 2023 (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 January 2, 2023 by adekk
Jim M Posted January 2, 2023 Posted January 2, 2023 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.
adekk Posted January 2, 2023 Author Posted January 2, 2023 Hmm... that user is in the www group, it should be working. I see there are group permissions...
Jim M Posted January 2, 2023 Posted January 2, 2023 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...
adekk Posted January 2, 2023 Author Posted January 2, 2023 I did some chmod right now. Please, check it now.
adekk Posted January 2, 2023 Author Posted January 2, 2023 (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 January 2, 2023 by adekk
adekk Posted January 2, 2023 Author Posted January 2, 2023 OK. I see you did something! I clicked on forums and it works.
Solution Jim M Posted January 2, 2023 Solution Posted January 2, 2023 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. adekk 1
adekk Posted January 2, 2023 Author Posted January 2, 2023 (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 January 2, 2023 by adekk
adekk Posted January 2, 2023 Author Posted January 2, 2023 (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 January 2, 2023 by adekk
Jim M Posted January 2, 2023 Posted January 2, 2023 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 🙂 . adekk 1
_Mike_ Posted January 13, 2023 Posted January 13, 2023 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
Recommended Posts