AM
Asked
Hi
I can not add product to invoice in POS module, it keeps loading without either adding or pops any message.
Thank you
I can not add product to invoice in POS module, it keeps loading without either adding or pops any message.
Thank you
- MSAnsweredHello,
Please check your server error logs and let me know the error details so that I can suggest.
Thank you - AMAnsweredFor your information, I have shifted the plugin to new domain on the same hosting and using the same database, may that be a reason or not?
If yes, so what I could do to use the existing database for the new domain without any prob.
Thank you - MSAnsweredHello,
Please refer to documentation.pdf as this is already answered there.
---
**What files I need to edit if I have moved to different server and/or domain?**
**Same url (domain)**: You will need to update the database configuration in `app/config/database.php`
**Different url (domain)**: You will need to update the `base_url` in `app/config/config.php` and database configuration in `app/config/database.php`
---
Thank you - AMAnswered"base_url" in config.php has been updated successfully, but I am not sure where do I need to change in "database.php". Unfortunately I have tried but finally failed in fixing the prob. once I select any product to add to the invoice it keeps loading forever!!
Please help me on that.
Thanks a lot - MSAnsweredHello,
If you can login to system that mean the database configuration is fine.
You need to check your server error logs for error details. If you need you can try to enable app logs by changing the `log_threshold` to 1 in the `app/config/config.php` and then try it again to produce the error. Lastly check the latest log file in `app/logs/` folder.
Thank you - AMAnsweredPlease check the error logs and then advice me what to do!
Thanks in advance. - AMAnsweredPlease check the error logs and then advice me what to do!
Thanks in advance.Attachments - MSAnsweredHello,
Is it fresh install or you have updated?
If updated from any pervious version, did you perform step 8 to update database?
The `base_unit_cost` column was added in the v3.4.38 I am not sure why your install don't have it. If you perform update, the step 8 is very important to update the database. You can run the following query after selecting your database to add the column
```sql
ALTER TABLE `sma_purchase_items` ADD `base_unit_cost` decimal(25,4) NULL;
```
Thank you - AMAnsweredDone.
Thank you - Login to Reply