Skip to main content
Topic: Php7.4 compatibality (Read 5775 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Php7.4 compatibality

Reply #30

I am content with the knowledge that PHP 8.x support is being worked on. I look forward to seeing your progress.
I use Mozilla Firefox.

Re: Php7.4 compatibality

Reply #31

Last time I read, I was convinced that ElkArte works on php8.0, at least with minimal bugs.

Re: Php7.4 compatibality

Reply #32

Quote from: ahrasis – The last time I read, I was convinced that ElkArte works on php8.0, at least with minimal bugs.
I am saddened to report that, unfortunately, you cannot install ElkArte using PHP 8.0.2. I attempted to test this out on my localhost. I can make it as far as entering my database name, username, and password. Upon hitting submit, I am directed to install.php?step=3 with a white page.
I use Mozilla Firefox.

Re: Php7.4 compatibality

Reply #33

Code: [Select]
[Sat Feb 20 14:27:20.568170 2021] [proxy_fcgi:error] [pid 78754:tid 140654970779200] [client 127.0.0.1:57966] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: mysqli_result object is already closed in /srv/http/Ekd/sources/ElkArte/Database/Mysqli/Result.php:55\nStack trace:\n#0 /srv/http/Ekd/sources/ElkArte/Database/Mysqli/Result.php(55): mysqli_free_result()\n#1 /srv/http/Ekd/sources/ElkArte/Database/AbstractResult.php(58): ElkArte\\Database\\Mysqli\\Result->free_result()\n#2 /srv/http/Ekd/sources/ElkArte/Database/Mysqli/Query.php(167): ElkArte\\Database\\AbstractResult->__destruct()\n#3 /srv/http/Ekd/sources/ElkArte/Database/AbstractQuery.php(656): ElkArte\\Database\\Mysqli\\Query->executeQuery()\n#4 /srv/http/Ekd/install/Install_Controller.php(614): ElkArte\\Database\\AbstractQuery->query()\n#5 /srv/http/Ekd/install/Install_Controller.php(56): Install_Controller->action_databaseSettings()\n#6 /srv/http/Ekd/install/install.php(43): Install_Controller->dispatch()\n#7 {main}\n  thrown in /srv/http/Ekd/sources/ElkArte/Database/Mysqli/Result.php on line 55', referer: http://localhost/Ekd/install/install.php?step=0
This is what I pulled from my httpd logs.  I have tried using both Elkarte 1.1.6 and the developer branch from Github.
Last Edit: February 20, 2021, 02:28:15 pm by ElkArte-Is-Awesome
I use Mozilla Firefox.

Re: Php7.4 compatibality

Reply #34

I've been neglect in reviewing the install program, my testing thus far has only been to update PHP versions on an existing install, not yet to install fresh.  So much to do, so much to do

Re: Php7.4 compatibality

Reply #35

Quote from: Spuds – I've been neglect in reviewing the install program. Thus far, my testing has only been to update PHP versions on an existing install, not yet to install fresh.  So much to do, so much to do
If I had the option to like your post, I would.  In the meantime, please take this reply as my heart-felt gratitude for knowing that you will get to it in due time.  I look forward to your ongoing progress.
I use Mozilla Firefox.

Re: Php7.4 compatibality

Reply #36

Quote from: ElkArte-Is-Awesome –
Quote from: ahrasis – The last time I read, I was convinced that ElkArte works on php8.0, at least with minimal bugs.
I am saddened to report that, unfortunately, you cannot install ElkArte using PHP 8.0.2. I attempted to test this out on my localhost. I can make it as far as entering my database name, username, and password. Upon hitting submit, I am directed to install.php?step=3 with a white page.
Must be the installer script because on my already installed elkarte, it is working fine.

There is an option to like a post but I am not sure what is the minimum post requirement for it. You'll definitely see it after some times.

Re: Php7.4 compatibality

Reply #37

I have just done an install of the github elkarte/patch_1-1-7 on php 8.0.1 cleanly. So not sure where your error is.

The only error I had was that the url was detected as 127.0.0.1 not the url of the server, but that was simply enough to reset in the theme management.

Edit: Oh you were using the development branch not the existing stable. There might be a bug there.

Re: Php7.4 compatibality

Reply #38

Quote from: tino – I have just done an install of the github elkarte/patch_1-1-7 on php 8.0.1 cleanly. So not sure where your error is.

The only error I had was that the url was detected as 127.0.0.1 not the url of the server, but that was simply enough to reset in the theme management.

Edit: Oh you were using the development branch not the existing stable. There might be a bug there.
I tried with 1.1.6 and the developer branch. Where did you obtain 1.1.7?
I use Mozilla Firefox.


 

Re: Php7.4 compatibality

Reply #41

I tried 1.1.7. I finally made it past the screen where you are asked for my database name, user name, and password. I made it onto the next screen, where it asks me what I wish to name my community and if you wish to enable a few features. I click on continue and am greeted with a white page that reads, "Table 'mydb.elkarte_categories' doesn't exist"   I can confirm that database was written (see screenshot), but it would seem the installer is not complete. The white page with the error I landed on can be seen on the following URL install/install.php?step=4 

The problem is the install is looking for elkarte_categories but elkarte_categories were not written.  You may wish to check your installer.


Re: Php7.4 compatibality

Reply #42

For some reason that table wasn’t created, what errors are showing in the Apache log?

Re: Php7.4 compatibality

Reply #43

For fun, I manually created the missing table.  This allowed me to continue with the install and complete it.  However, index.php shows only a white page.  My httpd logs show the following.

I believe this error is generated while existing the installer  (step 6)
Code: [Select]
[Sun Feb 21 13:52:36.031932 2021] [proxy_fcgi:error] [pid 6102:tid 140196146292288] [client 127.0.0.1:48472] AH01071: Got error 'PHP message: PHP Warning:  Undefined array key "warning_settings" in /srv/http/Elkarte1-1-7/sources/Load.php on line 70PHP message: PHP Warning:  Trying to access array offset on value of type null in /srv/http/Elkarte1-1-7/sources/Load.php on line 70PHP message: PHP Warning:  Undefined array key "attachmentUploadDir" in /srv/http/Elkarte1-1-7/sources/Load.php on line 140PHP message: PHP Warning:  Undefined array key "time_format" in /srv/http/Elkarte1-1-7/sources/Load.php on line 387PHP message: PHP Warning:  Undefined array key "theme_guests" in /srv/http/Elkarte1-1-7/sources/Load.php on line 1312PHP message: PHP Warning:  Undefined array key "default_theme_dir" in /srv/http/Elkarte1-1-7/sources/Load.php on line 1400PHP message: PHP Warning:  Undefined array key "theme_url" in /srv/http/Elkarte1-1-7/sources/Load.php on line 1453PHP message: PHP Warning:  Undefined array key "images_url" in /srv/http/Elkarte1-1-7/sources/Load.php on line 1454PHP message: PHP Warning:  Undefined array key "theme_dir" in /srv/http/Elkarte1-1-7/sources/Load.php on line 1455PHP message: PHP Warning:  Undefined array key "theme_dir" in /srv/http/Elkarte1-1-7/sources/Templates.class.php on line 556PHP message: PHP Warning:  Undefined array key "default_theme_dir" in /srv/http/Elkarte1-1-7/sources/Templates.class.php on line 556PHP message: PHP Warning:  Undefined array key "default_theme_dir" in /srv/http/Elkarte1-1-7/sources/Load.php on line 1461PHP message: PHP Warning:  require_once(/Theme.php): Failed to open stream: No such file or directory in /srv/http/Elkarte1-1-7/sources/Load.php on line 1461', referer: http://localhost/Elkarte1-1-7/install/install.php?step=6

And this error is generated upon the index
Code: [Select]
[Sun Feb 21 13:53:15.375944 2021] [proxy_fcgi:error] [pid 6462:tid 140196070790720] [client 127.0.0.1:48482] AH01071: Got error 'PHP message: PHP Warning:  Undefined array key "warning_settings" in /srv/http/Elkarte1-1-7/sources/Load.php on line 70PHP message: PHP Warning:  Trying to access array offset on value of type null in /srv/http/Elkarte1-1-7/sources/Load.php on line 70PHP message: PHP Warning:  Undefined array key "time_format" in /srv/http/Elkarte1-1-7/sources/Load.php on line 387PHP message: PHP Warning:  Undefined array key "theme_guests" in /srv/http/Elkarte1-1-7/sources/Load.php on line 1312PHP message: PHP Warning:  Undefined array key "default_theme_dir" in /srv/http/Elkarte1-1-7/sources/Load.php on line 1400PHP message: PHP Warning:  Undefined array key "theme_url" in /srv/http/Elkarte1-1-7/sources/Load.php on line 1453PHP message: PHP Warning:  Undefined array key "images_url" in /srv/http/Elkarte1-1-7/sources/Load.php on line 1454PHP message: PHP Warning:  Undefined array key "theme_dir" in /srv/http/Elkarte1-1-7/sources/Load.php on line 1455PHP message: PHP Warning:  Undefined array key "theme_dir" in /srv/http/Elkarte1-1-7/sources/Templates.class.php on line 556PHP message: PHP Warning:  Undefined array key "default_theme_dir" in /srv/http/Elkarte1-1-7/sources/Templates.class.php on line 556PHP message: PHP Warning:  Undefined array key "default_theme_dir" in /srv/http/Elkarte1-1-7/sources/Load.php on line 1461PHP message: PHP Warning:  require_once(/Theme.php): Failed to open stream: No such file or directory in /srv/http/Elkarte1-1-7/sources/Load.php on line 1461'

More work is required before the release of 1.1.7  I am happy I can bring these to light.  :)
I use Mozilla Firefox.

Re: Php7.4 compatibality

Reply #44

I don’t get those errors, you’re going to have to give more information about your environment.

What version of php, what packages, what webserver?