• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Class Imagick Not Found Error -- Upgrade from 1051570 to 2000037

Affected version
2.0 B7

Kevin

Well-known member
#1
I'm trying to upgrade a test install from the current 1.5.x release to 2.0 B7. Below is the results of the command line update.

The first error, about REMOTE_ADDR, is coming from this in my config.php....

// Enable debug mode
if ($_SERVER['REMOTE_ADDR'] == 'xx.xx.xx.xx')
{
// $config['debug'] = true;
}
The second error, about Imagic class, I am getting from both the command and when trying through the GUI. I can't get past the Imagick error. :(

Thoughts appreciated. :)

Notice: Undefined index: REMOTE_ADDR in /home/XXXXX/public_html/XXXXX/XXXXX/src/config.php on line 18
Current version: 1051570
Upgrade target: 2000037 (2.0.0 Beta 7)
Are you sure you want to continue with the upgrade? [y/n] y
Running upgrade to 2.0.0 Alpha, step 1... done.
Running upgrade to 2.0.0 Alpha, step 2... done.
Running upgrade to 2.0.0 Alpha, step 3... done.
Running upgrade to 2.0.0 Alpha, step 4... done.
Running upgrade to 2.0.0 Alpha, step 5... done.
Running upgrade to 2.0.0 Alpha, step 6... done.
Running upgrade to 2.0.0 Alpha, step 7... done.
Running upgrade to 2.0.0 Alpha, step 8... done.
Running upgrade to 2.0.0 Alpha, step 9... done.
Running upgrade to 2.0.0 Alpha, step 10... done.
Running upgrade to 2.0.0 Alpha, step 11... done.
Running upgrade to 2.0.0 Alpha, step 12... done.
Running upgrade to 2.0.0 Alpha, step 13... done.
Running upgrade to 2.0.0 Alpha, step 14... done.
Running upgrade to 2.0.0 Alpha, step 15... done.
Running upgrade to 2.0.0 Alpha, step 16... done.
Running upgrade to 2.0.0 Alpha, step 17... done.
Running upgrade to 2.0.0 Alpha, step 18... done.
Running upgrade to 2.0.0 Alpha, step 19... done.
Running upgrade to 2.0.0 Alpha, step 20... done.
Running upgrade to 2.0.0 Alpha, step 21... done.
Running upgrade to 2.0.0 Alpha, step 22... done.
Running upgrade to 2.0.0 Alpha, step 23... done.
Running upgrade to 2.0.0 Alpha, step 24... done.
Running upgrade to 2.0.0 Alpha, step 25... done.
Running upgrade to 2.0.0 Alpha, step 26... done.
Running upgrade to 2.0.0 Alpha, step 27... done.
Running upgrade to 2.0.0 Alpha, step 28... done.
Running upgrade to 2.0.0 Alpha, step 29... done.
Running upgrade to 2.0.0 Alpha, step 30... done.
Running upgrade to 2.0.0 Alpha, step 31... done.
Running upgrade to 2.0.0 Alpha, step 32... done.
Running upgrade to 2.0.0 Alpha, step 33... done.
Running upgrade to 2.0.0 Alpha, step 34... done.
Running upgrade to 2.0.0 Alpha, step 35... done.
Running upgrade to 2.0.0 Alpha, step 36... done.
Running upgrade to 2.0.0 Alpha, step 37... done.
Running upgrade to 2.0.0 Alpha, step 38... done.
Running upgrade to 2.0.0 Alpha, step 39... done.
Running upgrade to 2.0.0 Alpha, step 40... done.
Running upgrade to 2.0.0 Alpha, step 41... done.
Running upgrade to 2.0.0 Alpha, step 42... done.
Running upgrade to 2.0.0 Alpha, step 43... done.
Running upgrade to 2.0.0 Alpha, step 44... done.
Running upgrade to 2.0.0 Alpha, step 45... done.
Running upgrade to 2.0.0 Alpha, step 46... done.
Running upgrade to 2.0.0 Alpha, step 47... done.
Running upgrade to 2.0.0 Alpha, step 48... done.
Running upgrade to 2.0.0 Alpha, step 49... done.
Running upgrade to 2.0.0 Alpha, step 50... done.
Running upgrade to 2.0.0 Alpha, step 51... done.
Running upgrade to 2.0.0 Alpha, step 52... done.
Running upgrade to 2.0.0 Alpha, step 53... done.
Running upgrade to 2.0.0 Beta 2, step 1... done.
Running upgrade to 2.0.0 Beta 2, step 2... done.
Running upgrade to 2.0.0 Beta 3, step 1... done.
Running upgrade to 2.0.0 Beta 4, step 1... done.
Running upgrade to 2.0.0 Beta 4, step 2... done.
Running upgrade to 2.0.0 Beta 6, step 1... done.
Running upgrade to 2.0.0 Beta 6, step 2... done.
Running upgrade to 2.0.0 Beta 7, step 1... done.
Importing... Master data (Phrases)
Importing... Master data (Phrases: 21.4%)
Importing... Master data (Phrases: 39.2%)
Importing... Master data (Phrases: 54.6%)
Importing... Master data (Phrases: 67.5%)
Importing... Master data (Phrases: 77.9%)
Importing... Master data (Phrases: 88.0%)
Importing... Master data (Style properties)
Importing... Master data (Templates)
Importing... Master data (Templates: 15.8%)
Importing... Master data (Templates: 34.4%)
Importing... Master data (Templates: 48.3%)
Importing... Master data (Templates: 62.8%)
Importing... Master data (Templates: 75.8%)
Importing... Master data
Rebuilding... Phrases .
Rebuilding... Phrases . . .
Rebuilding... Templates .
Rebuilding... Templates . .
Rebuilding... Templates . . .
Rebuilding... Templates . . . .
Rebuilding... Templates . . . . .
Rebuilding... Templates . . . . . .
Rebuilding... Templates . . . . . . .
Fatal error: Class 'Imagick' not found in /home/XXXXX/public_html/XXXXX/XXXXX/src/XF/Image/Imagick.php on line 19
 

Kevin

Well-known member
#2
The second error, about Imagic class, I am getting from both the command and when trying through the GUI. I can't get past the Imagick error. :(

Thoughts appreciated. :)
Never mind. :whistle:

Years ago I had ImageMagick setup with the server for CentOS6 & PHP 5.x; in the 1.5.x install the ImageMagick option was selected. Over the course of time the server was upgraded to CentOS7 with EA4 & PHP 7. Somewhere along the way the ImageMagick install was lost but wasn't tripping any errors (or at least non evident) on the 1.5.x install that still had it selected. When I copied the 1.5.x database the ImageMagick option was still selected and the XF2 install barfed on it.

For anybody else...
yum install ImageMagick ImageMagick-devel pcre-devel
/opt/cpanel/ea-php70/root/usr/bin/pecl install imagick
service httpd restart
If nothing else playing with the XF2 is forcing me to clean up some stuff on my server. :LOL:
 

Mike

XenForo developer
Staff member
#5
I've fixed this particular error now. We will automatically not use ImageMagick if it's no longer available.