Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSTicket 1.9 / 1.9.1 500 Internal Server Error #969

Closed
LC501 opened this issue May 30, 2014 · 5 comments
Closed

OSTicket 1.9 / 1.9.1 500 Internal Server Error #969

LC501 opened this issue May 30, 2014 · 5 comments

Comments

@LC501
Copy link

LC501 commented May 30, 2014

Hi,

Getting the following error in my php error log -

[30-May-2014 10:30:49] PHP Fatal error: Call to undefined method DynamicFormEntry::addExtraHeader() in F:\OSTicket\scp\tickets.php on line 586

About this osTicket Installation
Server Information
osTicket Version v1.9.1 (0e29c8d)
Server Software Microsoft-IIS/7.5
PHP Version 5.3.6
MySQL Version 5.1.41
PHP Extensions
gdlib Used for image manipulation and PDF printing
imap Used for email fetching
xml XML API
xml-dom Used for HTML email processing
json Improves performance creating and processing JSON
gettext Improves performance for non US-English configurations
mbstring Highly recommended for non western european language content
Database Usage
Database Space Used 6.50 MiB
Database Space for Attachments 0.22 MiB

Line 586 reads as follows -
$ost->addExtraHeader('<script type="text/javascript" src="js/ticket.js?0e29c8d"></script>');

I get this error when trying to create a new ticket as either a staff member, or customer for every ticket created. This was occurring with 1.9.0 and continues with 1.9.1. Upgraded from 1.8 recently and that is when the problem started to occur.

Thanks,
Lionel.

@greezybacon
Copy link
Contributor

That seems like a php bug. Can you get me a complete backtrace on that error?

@greezybacon
Copy link
Contributor

I think this is the same bug as #917

@greezybacon
Copy link
Contributor

Are you running a non-standard extension, like Suhosin? Could you try the patch in #917?

@LC501
Copy link
Author

LC501 commented Jun 2, 2014

@greezybacon I can confirm the fix in #917 works.

Standard version of PHP 5.3.6 with IIS 7.5 running on a Windows 2008 R2 box. No additional extensions or modifications.

greezybacon pushed a commit that referenced this issue Jun 18, 2014
Some versions of PHP (5.3.6 on Windows at least) may corrupt `$ost` if it is
closed off as a global variable.

Fixes #917, #969
@greezybacon
Copy link
Contributor

I've committed the fix into the develop-next branch. Please test with the up-and-coming 1.9.2 release and reopen if the problem persists or resurfaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants