Post by MajorPain » Tue Dec 10, 2024 3:47 am

Extension: https://www.opencart.com/index.php?rout ... n_id=31450

I had the extension working previously with 3.0.3.8 and when I updated to 3.0.4.0, I disabled all the extensions before the upgrade, and then I enabled them again. This caused an issue where when I go into the extensions>modules and click on edit for this extension, I am getting this issue:

Notice: Error: Could not load template extension/module/pdf_invoice/extension! in /home/whitewaterhoney/storage/modification/system/library/template/twig.php on line 41

Part of my issue was that when I installed 3.0.3.8, it asked me to move the storage folder outside the public_html folder. The installer moved it automatically. When I upgraded the website, it installed the storage folder inside the public_html folder (no option to move the older appeared) and this created other issues and someone helped me with this and told me to move the storage folder from inside to outside overwriting the existing folder. That solved majority of my issue but not sure if this issue is related.

I've attempted to get support from the marketplace but the website doesn't allow getting support for free extensions so I'm posting here to see if anyone has any ideas before moving to something new.

Note I have the same extension on another website and it's totally working fine. I've tried disabling the extension, uninstalling and reinstalling but it's not allowing me to get past the above error.

Anyone have an idea on how to resolve this? Thanks
Last edited by MajorPain on Thu Jan 02, 2025 12:09 pm, edited 1 time in total.

Active Member

Posts

Joined
Mon Jul 09, 2018 9:05 am

Post by softmonke » Wed Dec 11, 2024 4:30 am

Just to be sure since you didn't mention it but does the file "extension.twig" exist in "catalog/view/theme/default/template/extension/module/pdf_invoice" directory?

Check out our ever-growing list of extensions for OpenCart here.
Some useful extensions for a better admin experience: Image File Manager ProDrag & Drop Sort Order

Reach out to us at hello@softmonke.com for your OpenCart web development needs or feedback for our extensions.


User avatar
Active Member

Posts

Joined
Tue May 23, 2023 4:42 am


Post by MajorPain » Wed Dec 11, 2024 8:25 am

softmonke wrote:
Wed Dec 11, 2024 4:30 am
Just to be sure since you didn't mention it but does the file "extension.twig" exist in "catalog/view/theme/default/template/extension/module/pdf_invoice" directory?
extension.twig isn't in catalog/view/theme/default/template/extension/module/pdf_invoice.
I also checked my other website where the extension is working and it's not there either.
Looking at both websites, there are only 2 files in that folder. pdf_invoice.twig and pdf_invoice_rtl.twig

Active Member

Posts

Joined
Mon Jul 09, 2018 9:05 am

Post by softmonke » Wed Dec 11, 2024 12:08 pm

MajorPain wrote:
Wed Dec 11, 2024 8:25 am
softmonke wrote:
Wed Dec 11, 2024 4:30 am
Just to be sure since you didn't mention it but does the file "extension.twig" exist in "catalog/view/theme/default/template/extension/module/pdf_invoice" directory?
extension.twig isn't in catalog/view/theme/default/template/extension/module/pdf_invoice.
I also checked my other website where the extension is working and it's not there either.
Looking at both websites, there are only 2 files in that folder. pdf_invoice.twig and pdf_invoice_rtl.twig
My bad, meant to ask if "extension.twig" exists in "admin/view/template/extension/module/pdf_invoice" directory instead.

Check out our ever-growing list of extensions for OpenCart here.
Some useful extensions for a better admin experience: Image File Manager ProDrag & Drop Sort Order

Reach out to us at hello@softmonke.com for your OpenCart web development needs or feedback for our extensions.


User avatar
Active Member

Posts

Joined
Tue May 23, 2023 4:42 am


Post by MajorPain » Wed Dec 11, 2024 8:48 pm

softmonke wrote:
Wed Dec 11, 2024 12:08 pm
MajorPain wrote:
Wed Dec 11, 2024 8:25 am
softmonke wrote:
Wed Dec 11, 2024 4:30 am
Just to be sure since you didn't mention it but does the file "extension.twig" exist in "catalog/view/theme/default/template/extension/module/pdf_invoice" directory?
extension.twig isn't in catalog/view/theme/default/template/extension/module/pdf_invoice.
I also checked my other website where the extension is working and it's not there either.
Looking at both websites, there are only 2 files in that folder. pdf_invoice.twig and pdf_invoice_rtl.twig
My bad, meant to ask if "extension.twig" exists in "admin/view/template/extension/module/pdf_invoice" directory instead.
Yes it's there on both websites.

Active Member

Posts

Joined
Mon Jul 09, 2018 9:05 am

Post by OSWorX » Wed Dec 11, 2024 9:03 pm

Don't know what went wrong during your update (and how you did it ..), but that extension is calling for the template extension.
See you first post:

Code: Select all

Could not load template extension/module/pdf_invoice/extension
Means a template named extension.twig should be inside the folder extension/module/pdf_invoice which would be the correct path - but the wrong template finally.

We all don't know why this message pop up at your page, but I recommend to delete this extension and install it again.
Would help you also not to waste more time in this case ..

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by MajorPain » Thu Dec 12, 2024 3:40 am

Ok so unless I am doing something incorrect, I get the same issue on installing the extension.

Steps I did:
- unable to disable because I can access the settings page so disabled in the Modifications page
- unistall from Extensions>Modules
- uninstall from Installer page
- checked by FTP and files appear to be deleted as well as files in Storage folder
- checked database and everything deleted there
- downloaded fresh copy
- installed via the installer
- hit Refresh in Modifications page
- installed in the Extensions>Modules
- hit setting button and the error pops up.

Something I do notice is that once all the lines in the database are deleted, once I install the extension again, the database lines are reinstalled and have the same settings as before deleting. Almost like the lines are hidden and made visable again

Active Member

Posts

Joined
Mon Jul 09, 2018 9:05 am

Post by MajorPain » Sun Dec 15, 2024 12:47 am

Ok so side question.

If I uninstall the extension, and then reinstall, I am noticing the some of the database lines aren't installed.
On the website the extension works, I have 25 pdf setting lines.
On the website it doesn't work, I have only 9 pdf setting lines.

So why would it not install all of the database settings? I've probably downloaded it 3-4 times and reinstalled it 10-12 times with the same results.
And other question is were does it get the info on what database lines to install?

Active Member

Posts

Joined
Mon Jul 09, 2018 9:05 am

Post by JNeuhoff » Sun Dec 15, 2024 12:59 am

Surely by now you could have contacted the extension author via its Get Support link?

Also, please provide more details, e.g. OC version used, extensions, website URL, etc, if you want further help here.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by MajorPain » Sun Dec 15, 2024 3:12 am

JNeuhoff wrote:
Sun Dec 15, 2024 12:59 am
Surely by now you could have contacted the extension author via its Get Support link?

Also, please provide more details, e.g. OC version used, extensions, website URL, etc, if you want further help here.
Get Support didn't work because it required an order ID. Free extensions don't have order ID's.
Someone sent me a message recently for a work around so I'll try that.

Thanks

Active Member

Posts

Joined
Mon Jul 09, 2018 9:05 am

Post by khnaz35 » Sun Dec 29, 2024 1:53 pm

Looking at the shared extension url i don't see that it does support your OC version 3.0.4.0

Code: Select all

4.x.x.x, 2.0.0.0, 2.0.1.0, 2.0.1.1, 2.0.2.0, 2.0.3.1, 2.1.0.1, 2.1.0.2, 3.0.0.0, 3.0.1.1, 3.0.1.2, 3.0.2.0, 3.0.3.0, 3.0.3.1, 3.0.3.2, 3.0.3.3, 3.0.3.5, 3.0.3.6, 3.0.3.7, 3.0.3.8, 3.0.3.9, 2.3.0.0, 2.3.0.1, 2.3.0.2
I believe you have it to give it short yourself or either you could post in commercial support section for paid assistance

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by pprmkr » Sun Dec 29, 2024 6:28 pm

MajorPain wrote:
Tue Dec 10, 2024 3:47 am
Extension: https://www.opencart.com/index.php?rout ... n_id=31450

I had the extension working previously with 3.0.3.8 and when I updated to 3.0.4.0, I disabled all the extensions before the upgrade, and then I enabled them again. This caused an issue where when I go into the extensions>modules and click on edit for this extension, I am getting this issue:

Notice: Error: Could not load template extension/module/pdf_invoice/extension! in /home/whitewaterhoney/storage/modification/system/library/template/twig.php on line 41

.....
- admin/view/template/extension/module/pdf_invoice/extension.twig is full of twig-errors.
- library/template/twig.php returns error in line 37.
- That error message should be: 'Error: Could not render template ' . $filename . '!'

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by MajorPain » Sun Dec 29, 2024 8:52 pm

khnaz35 wrote:
Sun Dec 29, 2024 1:53 pm
Looking at the shared extension url i don't see that it does support your OC version 3.0.4.0

Code: Select all

4.x.x.x, 2.0.0.0, 2.0.1.0, 2.0.1.1, 2.0.2.0, 2.0.3.1, 2.1.0.1, 2.1.0.2, 3.0.0.0, 3.0.1.1, 3.0.1.2, 3.0.2.0, 3.0.3.0, 3.0.3.1, 3.0.3.2, 3.0.3.3, 3.0.3.5, 3.0.3.6, 3.0.3.7, 3.0.3.8, 3.0.3.9, 2.3.0.0, 2.3.0.1, 2.3.0.2
I believe you have it to give it short yourself or either you could post in commercial support section for paid assistance
It works fine on another website with 3.0.4.0. Unfortunately I put a ticket in to the developer and it was closed due to no response. Looking at the github, it also is closed so I am guessing there is no more support for it.

Active Member

Posts

Joined
Mon Jul 09, 2018 9:05 am

Post by khnaz35 » Tue Dec 31, 2024 9:26 am

Can you share the git url for this?

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by MajorPain » Tue Dec 31, 2024 9:53 pm

khnaz35 wrote:
Tue Dec 31, 2024 9:26 am
Can you share the git url for this?
I searched for a while and couldn't find it. Might be mistaken and there was none. If there was I don't remember where I found it and didn't save it.
On their own website, there hasn't been any updates since 2022.

Active Member

Posts

Joined
Mon Jul 09, 2018 9:05 am

Post by khnaz35 » Tue Dec 31, 2024 10:40 pm

Well,
The only solution will be a commercial support then.

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by MajorPain » Wed Jan 01, 2025 3:10 am

It's working with a few little hiccups. Just can't access the admin area to change settings. I'm thinking of adding the missing database stuff to see if I can manually adjust the settings if they are read.

Active Member

Posts

Joined
Mon Jul 09, 2018 9:05 am

Post by MajorPain » Wed Jan 01, 2025 3:26 am

Another question.
I'm assuming the extension download would have something to creating database insertions.
Or am I incorrect?
If correct, where are files located generally for creating the database details?

Looking quickly through all the files I'm not sure I am seeing anything, but I might have.
Found:
private $fields = array(
'admin',
'attach',
'barcode',
'border_color',
'color',
'complete',
'download',
'font',
'font_size',
'logo',
'logo_font',
'logo_font_size',
'logo_height',
'logo_width',
'order_complete',
'order_image',
'order_image_height',
'order_image_width',
'paging',
'status'

Active Member

Posts

Joined
Mon Jul 09, 2018 9:05 am

Post by by mona » Thu Jan 02, 2025 10:54 am

Your assumption is not (necessarily) correct.

He is a great developer and he is still live and working. I know he can sometimes be a little "stern", but he has been working for many many years and he is a victim (like us all) of unappreciative users who think they can be rude without paying a dime and simply do not understand that we are paid professionals who really are very good .. most of the time .. I am not saying this is you at all, I am just stating the situation we face everyday. We also come across some amazing users.

Anyway, for many many years he used to help for free and help a lot and then like most of us he realised that the more you help for free the more people devalue what it is you do. Professionals already spent the 5 days it will take you to work it out, so that we can provide you with the information quickly, as is demanded from site owners. OPs should value the time we save them, not for the time it takes us.

He gets paid for his time. No ifs or buts. I dont know this extension off the top of my head, but I am pretty sure his email address is on his work.

As I know his extensions I can tell you the issue is that it will not be compatible with OC3.0.4.0.
I am sure if you start your email with how much would it cost, you will be more likely to get a reply.

As for uninstall, you need to uninstall and then remove the modification.
You need to check compatibility before installing things - he wont fix that for free either I am afraid.
The settings are more than likely in the oc_settings table

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by MajorPain » Thu Jan 02, 2025 12:09 pm

by mona wrote:
Thu Jan 02, 2025 10:54 am
Your assumption is not (necessarily) correct.

He is a great developer and he is still live and working. I know he can sometimes be a little "stern", but he has been working for many many years and he is a victim (like us all) of unappreciative users who think they can be rude without paying a dime and simply do not understand that we are paid professionals who really are very good .. most of the time .. I am not saying this is you at all, I am just stating the situation we face everyday. We also come across some amazing users.

Anyway, for many many years he used to help for free and help a lot and then like most of us he realised that the more you help for free the more people devalue what it is you do. Professionals already spent the 5 days it will take you to work it out, so that we can provide you with the information quickly, as is demanded from site owners. OPs should value the time we save them, not for the time it takes us.

He gets paid for his time. No ifs or buts. I dont know this extension off the top of my head, but I am pretty sure his email address is on his work.

As I know his extensions I can tell you the issue is that it will not be compatible with OC3.0.4.0.
I am sure if you start your email with how much would it cost, you will be more likely to get a reply.

As for uninstall, you need to uninstall and then remove the modification.
You need to check compatibility before installing things - he wont fix that for free either I am afraid.
The settings are more than likely in the oc_settings table
It works fine on another website I have with no issues on 3.0.4.0, I guess you assumed incorrectly.
Sure it might have a few issues as someone else mentioned but from what I can see it working even with those issues.
But that's ok, I've sorted it out from making changes in the database so far.

Active Member

Posts

Joined
Mon Jul 09, 2018 9:05 am
Who is online

Users browsing this forum: No registered users and 16 guests