-
Notifications
You must be signed in to change notification settings - Fork 40
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
fails from php 8.0 #27
Comments
sorry, not fully tested. page is shown after above quick fix, but not yet all incompatibilities fixed.
no time right now to follow up further, meeting coming up... |
I was having a similar problem on my webserver. I get a 500 error when trying to edit a page. The server log says:
Looking up the error on Stack Overflow, it says the get_magic_quotes function was deprecated: To be able to load the editor, I commented out the code block containing the get_magic_quotes_gpc function in json.php, and reloaded the root page. After I created an edited a page, I quit the application. Then, when trying to reload the page, I got a blank screen. Then, I edited the html.inc.php file at line 299 with the suggested code block by tschiemer, and was able to access it again. Posting this in case other people have similar issues. It took a while to figure all this out from Stack Overflow and the Issues section of this Github. Tech Stack:I am running Cloudron's LAMP app on a Digital Ocean VPS. PHP version is 7.4. Not sure about Apache version. |
Hello, I've tried setting up hotglue on my server and I'm finding the same problems mentioned by @tschiemer and @rafic20 I edited the html.inc.php page with the suggested edits and I changed line 47 in the json.php file to 'if( function_exists("get_magic_quotes_gpc") && get_magic_quotes_gpc())' When I try to edit a new hotglue page, I get: "The glue gun manufacturer says: There was a problem communicating with the server (ready state 4, status 500)" Any ideas how to move forward? |
Hi @alwayslearningalwaysexploring , does your json.php look like this for the lines in question? Note that I am commenting out the 3 lines beneath the In your example, you appear to still have those lines active in your script.
|
thanks for the advice @rafic20! i have these lines commented out and I've also made the change suggested by @tschiemer |
@alwayslearningalwaysexploring I'm using the ZIP download. I extracted the files and put it on my webserver but it didn't work. After making the changes mentioned in this thread, it is working for me. |
did you also make changes in the html.inc.php file like @tschiemer mentioned in #27 (comment) ? |
ok! the problem i was encountering had to do with the config file, a complete different issue that i will post in another thread. thanks @rafic20 ! |
hotglue2/html.inc.php
Line 299 in ff69c8d
php error in short that haystack of function in_array is null
quick fix that works for me
if (is_array($elem) && is_array($elem['class']) && @in_array($c, $elem['class'])) {
The text was updated successfully, but these errors were encountered: