ERROR 500

Jack

And if I create a new customer and complete the sale, it shows me http error 500

Comments

12 comments

  • Comment author
    Chris Muench

    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
  • Comment author
    Jack

    0
  • Comment author
    Jack

    After doing what you ask me to do, I got this message

    0
  • Comment author
    Chris Muench

    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
  • Comment author
    Jack

    now I can't even add items 

     

    0
  • Comment author
    Chris Muench

    As stated you need to disable debug. Change development -> production in index.php then add item. Then change back and complete sale

    0
  • Comment author
    Jack

    0
  • Comment author
    Jack

    I did like you ask me

    0
  • Comment author
    Chris Muench

    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
  • Comment author
    Jack

    Thanks for your support for now I gonna downgrade my php version and put money to upgrade my php pos 

    0
  • Comment author
    Mashal

    Hey Chriss, What it means when in debugging you get error "The application environment is not set correctly."

    0
  • Comment author
    Chris Muench

    When spelling development in the ENVIORNMENT there is most likley a typo

    0

Please sign in to leave a comment.