CodeIgniter Forums
PHP - CodeIgniter Application - deployment error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: PHP - CodeIgniter Application - deployment error (/showthread.php?tid=91456)



PHP - CodeIgniter Application - deployment error - dianeyard - 08-13-2024

I am getting error while deployment of PHP (CodeIgniter) application. I don’t want any runtime installation. And I see the issue is related to something PHP version but I am not sure. So can anyone help me to resolve issue ASAP. This is testing environment and After running successful on testing I have to create new production server.

Error Image:
[Image: 8487405660ef204bfd998bcb9ed5f9f965a69fde.png]


RE: PHP - CodeIgniter Application - deployment error - ozornick - 08-13-2024

These errors do not indicate a problem with the framework. Need more information


RE: PHP - CodeIgniter Application - deployment error - gosocial2 - 08-13-2024

I took a look at the error logs you posted and it seems like the issue might be related to some version mismatches between the packages your app uses.

From what I can tell, the ahsankhatri/cryptolib-php package wants PHP 7.0 or higher, but it looks like maybe your production server is running an older PHP version that doesn't quite match up. The logs mention something about it finding PHP 8.1.6 through 8.1.11 but that not working with what the package needs.

I'd suggest based on my previous experience that you double check which PHP version your production server has - if it's too old, you might need to see about updating it to a newer release that works with the cryptolib package and any other dependencies. Just take a peek at your composer.json file and look for where it specifies the PHP version, and make sure that matches what your server has, tinkering with that if needed.

If you already tried fixing the composer.json file, don't forget to run 'composer update' again to sync everything up, lock file and all.


RE: PHP - CodeIgniter Application - deployment error - kenjis - 08-15-2024

Upgrade ahsankhatri/cryptolib-php to v2.0.0 instead of v1.1.0.