PDA

View Full Version : Upgrade from 1.6 RC5 1.6 ST > Internal Error > Online / Offline


alexoliveira
02-10-2010, 03:55 AM
So I installed with fantastico and it worked lovely but then apparently need to do an upgrade to fix the following error:

<br />
<b>Parse error</b>: syntax error, unexpected T_VARIABLE in <b>/home/evenbett/public_html/support/api/pipe.php</b> on line <b>88</b><br />

Per the instructions, I took the helpdesk offline to being with.

I took great pains to be deliberate about doing the upgrade and ALL the messages in the upgrade process said it was successful, including internal messages.

Now when I go to put the site back online i get the very descriptive and helpful errror message

"internal error"

And as that offers no indication of how to fix said error I have no choice but to ask for your collective help.

regards from Toronto,
Alex

alexoliveira
02-10-2010, 04:29 AM
I manually edited the database and changed the isonline value to '1' from '0' and that got the os back online but that's hardly an elegant solution...nor did it solve the underlying problem and when I try to put it back offline or make any other changes to the preferences, the same 'internal error' shows up.

Onideia
02-22-2010, 07:22 AM
It's not only an Offline/Online issue. This error happens whenever someone tries to save the preferences.

ahs10
03-09-2010, 01:40 PM
i'm experiencing the same issue.

i figured out where the error is being triggered, that's about it. it's lines 73-78 of /scp/admin.php


if($cfg->updatePref($_POST,$errors)){
$msg='Preferences Updated Successfully';
$cfg->reload();
}else{
$errors['err']=$errors['err']?$errors['err']:'Internal Error';
}



any help on this? is changing the isonline binary variable like alexoliveira suggested the only work around?

bhoward
03-10-2010, 07:33 PM
I had problems with Fantastico too. I think some of their PHP pages (particularly in the "api" directory) are corrupt.

Anyway, the solution I came up with is this: download osTicket from the official site (http://osticket.com/downloads.php), then use it to replace the "api" directory on your site. It should work; it did for me, anyway.

ahs10
03-12-2010, 11:24 AM
at least for me... fantastico isn't the problem because i'm not using it. i downloaded the upgrade package from this site and installed it on my mac pro. anyone else have any input on how to fix this error?

datta
04-11-2010, 01:57 AM
Hi there, first post! :D

I had the same problem you're describing here.
Update from RC5 to ST was smooth, but when I tried to get the system back online, I got that nasty "internal error" message.

As Onideia pointed out, the error actually poped up every time I tried to save the preferences.

I started checking the code ahs10 mentioned before, and finally isolated the cause of the issue in page class.config.php, lines 510-511:

if(!$errors['admin_email'] && Email::getIdByEmail($var['admin_email'])) //Make sure admin email is not also a system email.
$errors['admin_email']='Email already setup as system email';


It seems to be a new verification added there, that prevents the use of the same email address as admin AND system email. I was using the same email account for both purposes, and that's why it didn't let me save the preferences.
I commented those two lines (because I don't want that restriction), and everything is working great now.

Oh, and I'm not using Fantastico (I don't even know what it is)

Well, I hope this could help anyone getting this annoying error after updating the system. ;)