- Edited
Hey guys,
I got a really big form built on our osTicket client portal for our end-users to use and fill out.
I was just testing it and was getting a 500 Error. I checked the logs and it seems that the form is exceeding the maximum allowed memory size.
I'm not sure if this is a PHP.ini configuration issue, or if its the actual PHP code in osTicket that inhibits this form from being submitted.
Server Specs:
osTicket Version v1.11 (7b1eee8) — Up to date
Web Server Software Apache/2.4.18 (Ubuntu)
MySQL Version 5.7.25
PHP Version 5.6.39-1+ubuntu16.04.1+deb.sury.org+1
These are the errors:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 77 bytes) in /var/www/html/osticket/upload/include/class.orm.php on line 3473, referer: http://site.domain.com/open.php
PHP Stack trace:, referer: http://site.domain.com/open.php
PHP 1. {main}() /var/www/html/osticket/upload/open.php:0, referer: http://site.domain.com/open.php
PHP 2. Ticket::create() /var/www/html/osticket/upload/open.php:42, referer: http://site.domain.com/open.php
PHP 3. DynamicFormEntry->save() /var/www/html/osticket/upload/include/class.ticket.php:3870, referer: http://site.domain.com/open.php
PHP 4. DynamicFormEntry->saveAnswers() /var/www/html/osticket/upload/include/class.dynamic_forms.php:1250, referer: http://site.domain.com/open.php
PHP 5. FormField->getClean() /var/www/html/osticket/upload/include/class.dynamic_forms.php:1285, referer: http://site.domain.com/open.php
PHP 6. SelectionField->parse() /var/www/html/osticket/upload/include/class.forms.php:636, referer: http://site.domain.com/open.php
PHP 7. SelectionField->getChoices() /var/www/html/osticket/upload/include/class.dynamic_forms.php:1515, referer: http://site.domain.com/open.php
PHP 8. CachedResultSet->getIterator() /var/www/html/osticket/upload/include/class.dynamic_forms.php:1737, referer: http://site.domain.com/open.php
PHP 9. CachedResultSet->asArray() /var/www/html/osticket/upload/include/class.orm.php:1721, referer: http://site.domain.com/open.php
PHP 10. CachedResultSet->fillTo() /var/www/html/osticket/upload/include/class.orm.php:1705, referer: http://site.domain.com/open.php
PHP 11. CallbackSimpleIterator->next() /var/www/html/osticket/upload/include/class.orm.php:1700, referer: http://site.domain.com/open.php
PHP 12. ModelInstanceManager->{closure:/var/www/html/osticket/upload/include/class.orm.php:1988-1996}() /var/www/html/osticket/upload/include/class.orm.php:2035, referer: http://site.domain.com/open.php
PHP 13. MySqlExecutor->getArray() /var/www/html/osticket/upload/include/class.orm.php:1991, referer: http://site.domain.com/open.php
PHP 14. MySqlExecutor->_cast() /var/www/html/osticket/upload/include/class.orm.php:3505, referer: http://site.domain.com/open.php
Is there anyway I can increase the allowed memory size?