-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An exception has been thrown during the rendering of a template #1125
Comments
Hello, thanks for reporting this issue and sorry for the long wait. Please share the code from the template file ( Thanks. Sincerely, |
Hi, It looked like there was an issue with the shipping method currency check. Since all of the products I have listed are virtual I removed all the entries in the offline_mall_shipping_methods and this removes the errors for me. |
Hello, you upgraded your site... which OC and Mall versions are you currently using? |
The previous and upgraded to versions are below. As I mentioned, once I removed all the entries from the shipping methods table on the database everything seems to work as intended. |
Sorry for the late reply. I am currently on OC 3.6.22 When I tried to create product sample I received this error after clicked create button. I tried migrate and refresh the mall plugin database and this error remain the same.
|
@jubbot Seems like your database is corrupted, at least the OFFLINE.Mall related tables. How did you tried to refresh the Mall Plugin? The correct way should be Can you confirm, that the Which database system are you using? |
Dang I hope we can repair my database? I have tried Confirmed that the offline_mall_index table is not present in the database and yes there is offline_mall_ table in the database. I am using MySQL |
Seems like the |
I have ran the index command and the error goes away so many thanks. Is there any further checks I need to perform before deploying the core oc and plugin updates to the live server. The question I asked is that I am worry that if after deployment completed the live server that hosted personal website generate bunch of errors that I am not familiar. The live server is using OC 3.6.18 |
This depends on how you deploy your website. You can test with Anyways, I've updated two projects (with similar configurations) last night simple following the commands
and nothing 's broken... yet. (Using So, if you don't have any wild plugins or scripts on your website, it should work fine. PS.: You may should call |
I have typed |
The solution provided by SamBrishes helped me distinguish the errors I encountered. |
Currently running 3.2.1 version on both local machine and shared hosting. After I deploy my work to the live server and refreshed the home page and saw this error. Can anyone guide me to how to fix this error? It has something to do with shipping price?
An exception has been thrown during the rendering of a template ("Brick\Money\Money::ofMinor(): Argument #1 ($minorAmount) must be of type Brick\Math\BigNumber|string|int|float, null given, called in /home/retracted/public_html/plugins/offline/mall/classes/pricing/records/ShippingRecord.php on line 68") in "/home/retracted/public_html/themes/retracted/layouts/single-tab.htm" at line 4.
The text was updated successfully, but these errors were encountered: