Skip to content
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

PHP 8.1 breaks AJAX Chat #291

Open
SergeantZombo opened this issue Jun 23, 2023 · 7 comments
Open

PHP 8.1 breaks AJAX Chat #291

SergeantZombo opened this issue Jun 23, 2023 · 7 comments

Comments

@SergeantZombo
Copy link

SergeantZombo commented Jun 23, 2023

I use two instances of the AJAX Chat on my server and PHP 8.1 seems to have broken both of them after my hosting service upgraded to 8.1 since I get a blank white screen with no errors displaying instead of the normal log-in page when trying too access either chat. One is a standalone instance, the other uses phpBB. Downgrading my PHP version too 7.4 fixes the issue as a temporary solution but are there any plans in the future too upgrade the chat's PHP code too work with 8.1?

@nicyu5774y
Copy link

se usi php8.1 e hai una schermata bianca in questo caso devi inserire i dati per la connessione (quando e bianca vuole dirti attento che non hai messo nulla per la connessione) /lib/config.php

@nicyu5774y
Copy link

questo vale per ubuntu e linux

@CouinCouin
Copy link

@SergeantZombo I have the same problem, I think it will be never fixed, as well as the last version is near from 8 years old .

@nicyu5774y No, it's not a problem of empty config.php file :(

@wintstar
Copy link

wintstar commented Jan 6, 2024

for php Version > 8

check the file chat/lib/class/AJAXChat.php and remove

4e05948#diff-ff743c76833fef3194d3cb2c538ca472dd975809c739889198f04675eb2a6747

and for Database use msqli

$config['dbConnection']['type'] = null;

// Database type:
$config['dbConnection']['type'] = 'mysqli';

or look for this branch

https://github.com/Frug/AJAX-Chat/tree/psr-4

@CouinCouin
Copy link

Hi winstar,

Thanks a lot !!!! I would never find it myself lol

Modification of usual version did not resolved but the psr-4 branch did ! 👍

Another question without relation with chat, do you know BlueImp JQuery File Upload ? I use it but does not run since PHP 8 :(

Thanks :D

@SergeantZombo
Copy link
Author

SergeantZombo commented Jan 7, 2024

Thankyou Wintstar! You're a lifesaver. Your suggestions fixed my issue and the chat works with PHP 8 now. You're awesome! :)

@wintstar
Copy link

@CouinCouin, @SergeantZombo

I have forked the repository and added and planned a few more things. I should be finished with the changes in the course of next week at the latest.

https://github.com/wintstar/AJAX-Chat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants