Post by iola56stovall » Thu Aug 28, 2025 7:16 pm

Hello everyone,

I'm encountering a fatal error after installing a new theme and I'm hoping someone can help me pinpoint the cause. I've been troubleshooting this for a few hours with no luck.

The Issue:
After I installed and activated the 'Custom Theme 2.0' extension, my site's frontend immediately shows a fatal error instead of the homepage. The exact error is:

Fatal error: Call to a member function on null in /home/user/public_html/vqmod/vqcache/vq2-catalog_view_theme_default_template_common_header.tpl on line 125
My Setup:

OpenCart Version: 2.3.0.2

Extension Name & Version: Custom Theme 2.0, version 2.0.1

PHP Version: 7.4.30

Server Environment: Shared Hosting

Steps I've Taken:

I have disabled and re-enabled the theme multiple times.

I have cleared the OpenCart cache from the dashboard.

I have refreshed the modifications.

I even tried deleting vqcache and the theme_cache folders manually.

The error still persists. It appears to be related to vqmod and a specific line in the header template, which is likely a modification made by the new theme. Has anyone else experienced this, or could you offer some advice on how I can resolve this? I'm trying to avoid a full re-installation.

Any help would be greatly appreciated. Thank you!

Milestone Mastercard


Newbie

Posts

Joined
Thu Aug 28, 2025 7:12 pm

Post by ADD Creative » Thu Aug 28, 2025 11:14 pm

Have at look at the code at the line in the file that the error is reporting. Then see if any or your vQmods are adding that code. Might give you a clue as to which ones are causing the issue.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by khnaz35 » Fri Aug 29, 2025 12:12 am

You have a clear issue here
Fatal error: Call to a member function on null in /home/user/public_html/vqmod/vqcache/vq2-catalog_view_theme_default_template_common_header.tpl on line 125

Got a burning question at 3 AM that even Google shrugs at? There’s a not-so-secret inbox that might just have your answer: khnaz35@gmail.com
Breathe in some nature while you're at it. It’s cheaper than therapy. :-*

Feel free to sling a bear my way via PayPal @ khnaz35@gmail.com


User avatar
Active Member
Online

Posts

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

Users browsing this forum: No registered users and 9 guests