Having an issue with Hostbill connecting to Onapp

Started by Adamnaz, March 12, 2015, 10:53:11 AM

Adamnaz

Hey Guys,

Having a bit of an issue after updating Hostbill to the latest version, has anyone else come across it?

Everytime I push test config against my OnApp server in hostbiil I get this error reported
"PHP Error PHP [Parsing Error]: syntax error, unexpected '[', expecting ')' IN vendor/react/promise/src/functions.php(68)"

Now I managed to get around this error by finding the [ and replacing it with ) on line 68 but now I get another error

PHP [Parsing Error]: syntax error, unexpected ')' IN vendor/react/promise/src/functions.php(75)

I'm no PHP developer so thats why I'm here  ;D

Any help would be great, thanks.
Adam

BRJP

I don't use onApp but there are others in the community who may be able to confirm the issue and perhaps help.

Out of interest, have to done the same process?  i.e. gone to that file, found the error and replaced the wrong text?
Kind regards,
Bradley Porter
--------------------
Find out more about SaneChoice Services at: https://www.sanechoice.cloud/

Adamnaz

I have attempt a few fixes but every time I make a change to the line and character it complains about, I then get a new error on a new line,  since I'm not 100% sure if my change is actually helping or just making it worse, so I reverted back to the original php file.

I've taken a snap of the error log if it helps.

thanks,
Adam

BRJP

Is rolling back the HostBill version an option for you to see if this restores the service?


I also think we need someone else using OnAPP to verify if they have an issue post HostBill upgrade.  Then, if more than just your instance, you should collect all the information and raise as a bug report.
Kind regards,
Bradley Porter
--------------------
Find out more about SaneChoice Services at: https://www.sanechoice.cloud/

Adamnaz

Just managed to fix the issue, I was running PHP 5.3, that piece of code only works in PHP 5.4 or higher.

I've just upgrade to 5.4 and its all working, yay :D

Thanks for the assistance!

Adam

BRJP

Excellent and glad you have fixed it. 

How did you work this out in the end?
Kind regards,
Bradley Porter
--------------------
Find out more about SaneChoice Services at: https://www.sanechoice.cloud/

Adamnaz

I found this on a Drupal forum, a developer had an issue with the php code using [] and putting out a similar error message.

QuoteLine 62 is the return resolve([]);.
So, it's a thing with the short array syntax.
This error would typically occur in PHP 5.3, but not in PHP 5.4.

I confirmed that I was on 5.3 and then upgraded to 5.4 and success  :D

Adam

BRJP

Excellent and good to have a closed post on here for community viewing.
Kind regards,
Bradley Porter
--------------------
Find out more about SaneChoice Services at: https://www.sanechoice.cloud/