BxDolImageResize.php errors via cron after upgrade

After upgrading from 7.1.6 to 7.2.1, my cron job is emailing me this error every minute about this file BxDolImageResize.php




PHP Warning:  Unexpected character in input:  '\' (ASCII=92) state=1 in /home/www/mysite.com/inc/classes/BxDolImageResize.php on line 44

Warning: Unexpected character in input:  '\' (ASCII=92) state=1 in /home/www/mysite.com/inc/classes/BxDolImageResize.php on line 44
PHP Parse error:  syntax error, unexpected T_STRING in /home/www/mysite.com/inc/classes/BxDolImageResize.php on line 44

Parse error: syntax error, unexpected T_STRING in /home/www/mysite.com/inc/classes/BxDolImageResize.php on line 44

 

 

This is Line 44:

$this->_oManager = new Intervention\Image\ImageManager(array('driver' => $this->_isUseGD ? 'gd' : 'imagick'));

 

 

I started getting this constant error being emailed to me by the cron job as soon as I clicked to resize images as part of the upgrade from 7.1.6 to 7.2.

 

 

Thanks.

Quote · 28 Oct 2015

First, make sure the file wasn't damaged on upload - try reuploading it. Second, make sure these PHP extensions are installed: fileinfo and exif. They're needed for uploads and photos to work in 7.2.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 31 Oct 2015

Ok Nathan double checked all of those things and all is correct.  Image uploads also work fine. Error still firing for unexpected character.  Please note this is PHP 5.5

Quote · 1 Nov 2015

I posted this 6 days ago.  PHP is flagging this files code characteristics.  PHP 5.5. Anybody have any help to move forward?

Quote · 3 Nov 2015

This problem could have place when older than PHP 5.3 is used. Even if your site is using PHP 5.5, it maybe cron is still using old version. Check what php version is used in cron and change patch to new php binary in the cron command. I think your hosting support should help you with this.

Rules → http://www.boonex.com/terms
Quote · 4 Nov 2015

 

This problem could have place when older than PHP 5.3 is used. Even if your site is using PHP 5.5, it maybe cron is still using old version. Check what php version is used in cron and change patch to new php binary in the cron command. I think your hosting support should help you with this.

 

Issue Solved! You nailed it AlexT. Thank You. File path for cron was old php. Now to get these video embeds working in another thread and I can move on with my life. I'm grateful.  Thank you.

Quote · 4 Nov 2015
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.