forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 install => Topic started by: Ezriilc on June 20, 2020, 11:24:54 pm

Title: Error at install step 2: "Trying to access array offset on value of type null"
Post by: Ezriilc on June 20, 2020, 11:24:54 pm
Hello, all.  :)  I'm new here, but I'm pretty comfortable with running a server and related stuff.   8)

I've done a great deal of searching for my issue around the web and here, but couldn't find anything useful.

I'm trying to install Coppermine 1.6.08 on my Windows 10 x64 machine with the following server stuff installed and working:

I started the install by accessing the stub file "cpg_installer_stub.php.v3.3.txt" (renamed to "cpg_installer_stub.php").
I chose the top version ("CPG Release 1.6.08"), then clicked "Install Selected Package".
That gave me: "All package files were successfully placed. Click below to complete the install."
I clicked the "Complete Install" button which proceeded to the install page (step 1) and showed the License.
I then clicked the "Let's Go!" button which took me to the install step 2, and that's where I get stopped.

The page first shows: "( ! ) Notice: Trying to access array offset on value of type null in include\versioncheck.inc.php on line 342"
Then the second line is: "( ! ) Notice: Trying to access array offset on value of type null in include\versioncheck.inc.php on line 361"
Then the first error is repeated until the max execution time is reached, and nothing else shows.

Now, I realize that "Notice" errors can be ignored and I may be willing to do so, but the problem is that nothing else happens (even with 120 seconds of max execution time), so there's no way to proceed.

Any input is greatly appreciated.  Thanks in advance! 
Title: Re: Error at install step 2: "Trying to access array offset on value of type null"
Post by: Ezriilc on June 20, 2020, 11:42:02 pm
Here is the full list of PHP extensions that I have running (via "get_loaded_extensions()").

   
Title: Re: Error at install step 2: "Trying to access array offset on value of type null"
Post by: ron4mac on June 21, 2020, 01:09:39 am
The PHP notices are being caused by something that should be corrected in the install. But hundreds of installs have been successful without this issue causing a failure to install. Could you relax the error reporting/display in your PHP for the install?

You might want to also set ignore_repeated_errors in your php.ini to On.
Title: Re: Error at install step 2: "Trying to access array offset on value of type null"
Post by: ron4mac on June 21, 2020, 02:19:39 am
I tried to replicate your failure to install on one of my host accounts with PHP 7.4.4, but was still able to install. I got one notice line, like you got, but no more because of the PHP setting to not repeat the notice display. The install continued to subsequent steps without problem.
Title: Re: Error at install step 2: "Trying to access array offset on value of type null"
Post by: Ezriilc on June 21, 2020, 10:03:10 pm
The PHP notices are being caused by something that should be corrected in the install. But hundreds of installs have been successful without this issue causing a failure to install. Could you relax the error reporting/display in your PHP for the install?

You might want to also set ignore_repeated_errors in your php.ini to On.

Yes!  Shutting off errors and removing xdebug did allow the install to complete, but with other errors that eventually lead me to realize that I didn't have GD2 or ImageMagick installed.

After installing GD2, it seems to all be working now.  I need to figure out ImageMagick yet.

Thanks for the help!  I didn't think that turning off errors would help the script complete, but here I am.