This is from within the product.php file!letxobnav wrote: ↑Tue Sep 29, 2020 11:57 pmyes, that is correct, extensions can totally kill your site.
Still, that extension only changes some twig files and we already established that the issue is not in the twig.
looks like your database is ok so that leaves the model.
Check if you have a file called catalog/model/catalog/product.php in your modification directory.
If you do, what does the function getProduct in that file look like?
if you don't, what does the function getProduct in catalog/model/catalog/product.php look like?
Attachments
And this complemented it - Capture2.PNG (30.37 KiB) Viewed 2927 times
This is the first picture - Capture1.PNG (61.98 KiB) Viewed 2927 times
Which file is it now, in modification or core?
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Attachments
Which file is it now, in modification or core?
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Check if you have a file called catalog/model/catalog/product.php in your modification directory.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
./system/storage/modification (if not moved)
otherwise below your public web root ..
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Code: Select all
define('DIR_STORAGE', 'xxxxxxxxxxxxxxxxxxxxxxx');
Code: Select all
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
So check the modification dir:
Code: Select all
public_html/storage/modification/catalog/model/catalog/product.php
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
This path is invalidsw!tch wrote: ↑Wed Sep 30, 2020 2:53 amSo check the modification dir:
and post back the getProduct method as @letxobnav suggested.Code: Select all
public_html/storage/modification/catalog/model/catalog/product.php
Because inside the modification folder there is only index.html file
According to the above you have a storage folder in your root directory.
1. Do you have a modification folder inside that storage folder?
According to your comments you have a storage file in the system directory?
2. Do you have a modification folder inside that storage folder?
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
The path IS correct.
You simply have NO files (except the index.hmtl which is created automatically) in.
Therefore you have no modifcated files.
Pay a developer - will save our all time.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
While you are there, check what is in your events table.
and put this:
Code: Select all
$this->log->write(print_r($query,true));
Code: Select all
if ($query->num_rows) {
that will show the returned data from the query and also tell us if that is actually the function executed.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Users browsing this forum: No registered users and 80 guests