Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 02-04-2019 17:03:32

aerosports
Member
Registered: 10-26-2007
Posts: 16

Pear Issues Switching to New Server

I'm in the process of moving to a new hosting company.  I've moved all my files and database and I'm running the installer.  It shows all pear modules are up to date.

When I get to step 8/9 I get the following error for all three types of sendmail connections:

Script Execution Error
count(): Parameter must be an array or an object that implements Countable

File: /pear/Mail/mimePart.php Line: 314 Error Number: 2


Any input is appreciated.

Offline

 

#2 02-05-2019 07:47:27

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19241
Website

Re: Pear Issues Switching to New Server

You've said you're sure PEAR is fully updated in the install - that would have been the first thing I would have checked.  Double-check this by looking at {private}/pear in your install.  Do you see new classes like Mail2 there?  If so, that means you are fully updated.  If not, run your installer and update PEAR.  Please post back if PEAR is in fact fully updated and you still have the error.  Also, please let us know which PHP version you're running on the new server.  Thank you.


Nick Hendler

Offline

 

#3 02-05-2019 09:40:41

aerosports
Member
Registered: 10-26-2007
Posts: 16

Re: Pear Issues Switching to New Server

Pear2 folder is there.  When I run installer, I install/update the pear modules and it tells me that everything is installed and up to date.  I just tried to overwrite the files and just got the following error:

Fatal error: Cannot use result of built-in function in write context in /home/d4uh/core-private/pear/Archive/Tar.php on line 662

Offline

 

#4 02-05-2019 16:38:21

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19241
Website

Re: Pear Issues Switching to New Server

What version of PHP are you attempting to use?  What version of Kryptronic software are you using?


Nick Hendler

Offline

 

#5 02-05-2019 18:10:35

aerosports
Member
Registered: 10-26-2007
Posts: 16

Re: Pear Issues Switching to New Server

PHP 7.2.  I can't seem to find the location for which version of 8 I am using.

Offline

 

#6 02-06-2019 07:38:25

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19241
Website

Re: Pear Issues Switching to New Server

Only our K9 platform has been fully tested with PHP7.  You may or may not have issues with V8 and lower on PHP7.  The max tested version of PHP for V8 is PHP 5.6.  The PEAR modules are all PHP7 compatible, though.  You might get by with picking up a new installer here:

https://central.kryptronic.com/public/i … rtpro8.zip

The error you're getting is because your installer.php script is out of date and trying to use PEAR::Mail instead of PEAR::Mail2.  You will definitely want to update to the latest version 8 released as well (version 8.0.9), just to be safe:

https://central.kryptronic.com/public/n … 2015A.html


Nick Hendler

Offline

 

#7 02-06-2019 11:32:19

aerosports
Member
Registered: 10-26-2007
Posts: 16

Re: Pear Issues Switching to New Server

I went to switch to php 5.6 and it looks like I was mistaken and I am running 5.6 and already using the new installer.

Offline

 

#8 02-07-2019 07:57:16

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19241
Website

Re: Pear Issues Switching to New Server

I just checked, and for some odd reason (probably because I was updating installer packages earlier this week), the V8 installer was out-of-date on the central server.  I apologize for the trouble.  Please grab the installer again from:

https://central.kryptronic.com/public/i … rtpro8.zip

I've ensured it's the current version that uses PEAR::Mail2.


Nick Hendler

Offline

 

Board footer