-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sitebar client not working with pHp 7.1 #41
Comments
SiteBar now supports PHP 8.3. I did not test backward compatibility but would not expect it to work on anything below 8.0. So I would strongly recommend upgrading to at least PHP 8.3. Or finding a hosting that allows containerized versions to be hosted. |
Thank You for the quick answer.
I have updated php to version 8.3. Nevertheless, sitebar does not work. After trying to log in from the website, a white area opens.
J. Barnert
Am 27.12.2024 um 11:42 schrieb Ondrej Brablc ***@***.***>:
SiteBar now supports PHP 8.3. I did not test backward compatibility but would not expect it to work on anything below 8.0. So I would strongly recommend upgrading to at least PHP 8.3. Or finding a hosting that allows containerized versions to be hosted.
—
Reply to this email directly, view it on GitHub<#41 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACTMUGCDFYNSN5MZ63V2LCD2HUVJTAVCNFSM6AAAAABUHSSYLKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRTGU3DQOJYGQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Now you have to follow https://github.com/brablc/sitebar/blob/master/doc/troubleshooting.txt and provide some error messages that you see. |
As I reported to You, I have solved the problem by copying the latest version of sitebar to my webspace. Now it works. But no matter whether I click on Downgrade or Upgrade (which one is correct here?), all I get is a blank white web page. |
I have exported the current database from my web host. In the table sitebar_config the release is 3.6.2. I imported this into the (emptied) database on the Raspberry and lo and behold, I can access the login menu. But despite entering the correct data for user and password, I can't get into Sitebar. The following message appears in German above the login area: Sie müssen Cookies erlauben, sich anzumelden oder zu registrieren! (You must allow cookies to log in or register!) But I have allowed cookies in Firefox. Sitebar version 3.6.2 is installed on the server (Raspberry) and PHP version is 8.2.7 |
You should upgrade, latest version is 3.6.2. But as it does not work you may try to execute this SQL manually: https://github.com/brablc/sitebar/blob/master/sql/upgrade_3.6.1.sql |
I have used sidebar version 3.6.2 (from GitHub master.zip). In the database (mariaDB 10.11.6) in the table sidebar_config version 3.6.2 is shown. I have used now a Raspberry 4. I have looked in the database whether all the needs of release upgrade_3.6.1.sql are fullfilled in the database tables. I still cannot login and get the message in German: Sie müssen Cookies erlauben, sich anzumelden oder zu registrieren! (You must allow cookies to log in or register!). What is wrong? |
Well this can be difficult to debug. Do you have some other tool that runs on the same environment and uses cookies (e.g. to login)? We have to rule out if the problem is in the Sitebar or in the environment. Please try to open browser console (developer tools) and watch for errors. It may show why cookies are rejected. |
Thank you for your valuable tips! I opened the Firefox console. When I tried to log in with sitebar installed on the Raspberry, I got the following error message (in German):
'Das Cookie "SB3COOKIE" wurde abgelehnt, weil ein Nicht-HTTPS-Cookie nicht als "secure" gesetzt werden kann.' (in English:
'The cookie “SB3COOKIE” was rejected because a non-HTTPS cookie cannot be set as “secure”.)
So that was the problem why it didn't work on the Raspberry; on the webspace of my hoster the subdomain with sitebar is encrypted with https. That's why it worked there. On the Rasperry I have now also encrypted the apache server with openssl
Can you comment out the default 'secure' in the php code? I only wanted to use sitebar on the Raspberry in the local network. All environment parameters remain constant on the Raspberry; I will not update mysql or php here.
Thanks again!
Can I show You my appreciation, e.g. via Paypal?
Translated with DeepL.com (free version)
Am 07.01.2025 um 00:22 schrieb Ondrej Brablc ***@***.***>:
Well this can be difficult to debug. Do you have some other tool that runs on the same environment and uses cookies (e.g. to login)? We have to rule out if the problem is in the Sitebar or in the environment. Please try to open browser console (developer tools) and watch for errors. It may show why cookies are rejected.
—
Reply to this email directly, view it on GitHub<#41 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACTMUGEA4GBPY6SCFDZMNFL2JMF35AVCNFSM6AAAAABUHSSYLKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZUGA4TQMJWGA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I had to update pHp to 7.1, because my webspace provider does not support pHp 7.0 anymore. Sitebar client does not work in Firefox anymore.
What to do?
The text was updated successfully, but these errors were encountered: