ERROR 500 Jack January 09, 2022 11:03 12 comments And if I create a new customer and complete the sale, it shows me http error 500 Comments 12 comments Sort by Date Votes Chris Muench January 09, 2022 12:11 You will need to perform debugging steps to figure out the exact error. Open up index.php in the phppos root folder: FIND: define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'production’); REPLACE: define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : ‘development’); open application/config/database.php FIND: $db['default']['db_debug'] = FALSE; REPLACE: $db['default']['db_debug'] = TRUE; Then see the errors. Do NOT forget to undo these changes afterwords. 0 Jack January 09, 2022 14:30 0 Jack January 09, 2022 14:31 After doing what you ask me to do, I got this message 0 Chris Muench January 09, 2022 14:33 This isn't the sale complete page AND You are using a really old version that is unsupported (I can tell since it uses Sale_lib.php which isn't used in newer versions)Please try completing sale (even if you get the notices during sale checkout, you might have to add an item with debugging off then turn debuggin on to complete sale. In either case you need to upgrade php pos. You might be haivng error because you are using php 8 on a very old version of php pos which won't work. Support is only good for 1 year and I highly recommend upgraindg. 0 Jack January 09, 2022 14:50 now I can't even add items 0 Chris Muench January 09, 2022 15:01 As stated you need to disable debug. Change development -> production in index.php then add item. Then change back and complete sale 0 Jack January 09, 2022 15:13 0 Jack January 09, 2022 15:14 I did like you ask me 0 Chris Muench January 09, 2022 15:31 You are running php 8 and an older version of php pos and this won't work. You need to downgrade php or upgrade php pos which support php 8 0 Jack January 09, 2022 15:36 Thanks for your support for now I gonna downgrade my php version and put money to upgrade my php pos 0 Mashal March 23, 2022 20:50 Hey Chriss, What it means when in debugging you get error "The application environment is not set correctly." 0 Chris Muench March 24, 2022 12:39 When spelling development in the ENVIORNMENT there is most likley a typo 0 Please sign in to leave a comment.