Hi there!
I have moved my 5-year system from a shared cPanel host to a VPS successfully. However, I have noticed that the Sales > POS Sales page does not load: https://paste.pics/b0ca7d36340ef32bfbe54a33fbecc692
[Thu May 30 15:06:44.639923 2024] [php:error] [pid 27129] [client 105.163.1.161:1306] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/.../system/database/drivers/mysqli/mysqli_driver.php on line 315
[Thu May 30 15:06:44.653707 2024] [php:error] [pid 27129] [client 105.163.1.161:1306] PHP Fatal error: Uncaught Error: Call to a member function row() on bool in /var/www/.../system/libraries/Session/drivers/Session_database_driver.php:450\nStack trace:\n#0 /var/www/.../system/libraries/Session/drivers/Session_database_driver.php(282): CI_Session_database_driver->_release_lock()\n#1 /var/www/.../system/libraries/Session/PHP8SessionWrapper.php(66): CI_Session_database_driver->close()\n#2 [internal function]: CI_SessionWrapper->close()\n#3 {main}\n thrown in /var/www/.../system/libraries/Session/drivers/Session_database_driver.php on line 450
I have checked that memory_limit is set to -1 in php.ini and the VM has 2GB of RAM.
I’m running on PHP 8.1.2 and mysql Ver 8.0.36 for Linux on x86_64 ((Ubuntu))
Please assist. 🙏🏽
- DWAnswered
Resolved by editing the loaded php.ini config file (/etc/php/8.1/apache2/php.ini) which was set to memory_limit = 128M 🤦🏽♂️
Had been looking at /etc/php/8.1/cli/php.ini instead smh
- MSAnswered
Thank you for sharing the solution
- Login to Reply