Post by Diaplo » Wed Sep 30, 2020 12:15 am

letxobnav wrote:
Tue Sep 29, 2020 11:57 pm
yes, 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?
This is from within the product.php file!

Attachments

Capture2.PNG

And this complemented it - Capture2.PNG (30.37 KiB) Viewed 2927 times

Capture1.PNG

This is the first picture - Capture1.PNG (61.98 KiB) Viewed 2927 times


New member

Posts

Joined
Thu Jun 25, 2020 5:36 am

Post by letxobnav » Wed Sep 30, 2020 12:23 am

not handy to screenshot code, just copy and paste it here.
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.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by Diaplo » Wed Sep 30, 2020 12:31 am

letxobnav wrote:
Wed Sep 30, 2020 12:23 am
not handy to screenshot code, just copy and paste it here.
Which file is it now, in modification or core?

Attachments


New member

Posts

Joined
Thu Jun 25, 2020 5:36 am

Post by letxobnav » Wed Sep 30, 2020 12:47 am

that code is fine, still:
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.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by Diaplo » Wed Sep 30, 2020 12:49 am

letxobnav wrote:
Wed Sep 30, 2020 12:47 am
that code is fine, still:
Which file is it now, in modification or core?
I do not know what you mean? How do I know that?

New member

Posts

Joined
Thu Jun 25, 2020 5:36 am

Post by letxobnav » Wed Sep 30, 2020 1:00 am

as I said:
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.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by Diaplo » Wed Sep 30, 2020 1:05 am

letxobnav wrote:
Wed Sep 30, 2020 1:00 am
as I said:
Check if you have a file called catalog/model/catalog/product.php in your modification directory.
I'm sorry, how do I get this modification directory?

New member

Posts

Joined
Thu Jun 25, 2020 5:36 am

Post by OSWorX » Wed Sep 30, 2020 1:18 am

Diaplo wrote:
Wed Sep 30, 2020 1:05 am
letxobnav wrote:
Wed Sep 30, 2020 1:00 am
as I said:
Check if you have a file called catalog/model/catalog/product.php in your modification directory.
I'm sorry, how do I get this modification directory?
./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.


User avatar
Guru Member

Posts

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

Post by letxobnav » Wed Sep 30, 2020 1:29 am

just check in you config.php file where your storage is:

Code: Select all

define('DIR_STORAGE',		'xxxxxxxxxxxxxxxxxxxxxxx');
your modification directory should be there with:

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.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by Diaplo » Wed Sep 30, 2020 1:34 am

OSWorX wrote:
Wed Sep 30, 2020 1:18 am
Diaplo wrote:
Wed Sep 30, 2020 1:05 am
letxobnav wrote:
Wed Sep 30, 2020 1:00 am
as I said:
Check if you have a file called catalog/model/catalog/product.php in your modification directory.
I'm sorry, how do I get this modification directory?
./system/storage/modification (if not moved)
otherwise below your public web root ..
This is the only file in this directory.

Attachments

Capture.PNG

This is what is written in the file. - Capture.PNG (16.8 KiB) Viewed 2839 times


New member

Posts

Joined
Thu Jun 25, 2020 5:36 am

Post by letxobnav » Wed Sep 30, 2020 1:44 am

that is not it as we alrready established that you have an extension installed with modified twig files, those should also be there.

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.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by Diaplo » Wed Sep 30, 2020 1:47 am

define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');

This is what is written exactly.

New member

Posts

Joined
Thu Jun 25, 2020 5:36 am

Post by Diaplo » Wed Sep 30, 2020 1:59 am

letxobnav wrote:
Wed Sep 30, 2020 1:44 am
that is not it as we alrready established that you have an extension installed with modified twig files, those should also be there.
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');

This is what is written exactly.

New member

Posts

Joined
Thu Jun 25, 2020 5:36 am

Post by letxobnav » Wed Sep 30, 2020 2:09 am

what is defined as DIR_STORAGE ?

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.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by Diaplo » Wed Sep 30, 2020 2:25 am

letxobnav wrote:
Wed Sep 30, 2020 2:09 am
what is defined as DIR_STORAGE ?
This is the definition:
define('DIR_STORAGE', '/home/u803920779/domains/simpleandeasy.shop/public_html/storage/');

But I have another storage file inside the system file.

New member

Posts

Joined
Thu Jun 25, 2020 5:36 am

Post by sw!tch » Wed Sep 30, 2020 2:53 am

Diaplo wrote:
Wed Sep 30, 2020 2:25 am
This is the definition:
define('DIR_STORAGE', '/home/u803920779/domains/simpleandeasy.shop/public_html/storage/');
So check the modification dir:

Code: Select all

public_html/storage/modification/catalog/model/catalog/product.php
and post back the getProduct method as @letxobnav suggested.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by Diaplo » Wed Sep 30, 2020 3:17 am

sw!tch wrote:
Wed Sep 30, 2020 2:53 am
Diaplo wrote:
Wed Sep 30, 2020 2:25 am
This is the definition:
define('DIR_STORAGE', '/home/u803920779/domains/simpleandeasy.shop/public_html/storage/');
So check the modification dir:

Code: Select all

public_html/storage/modification/catalog/model/catalog/product.php
and post back the getProduct method as @letxobnav suggested.
This path is invalid
Because inside the modification folder there is only index.html file

New member

Posts

Joined
Thu Jun 25, 2020 5:36 am

Post by by mona » Wed Sep 30, 2020 3:49 am

Diaplo wrote:
Wed Sep 30, 2020 2:25 am
letxobnav wrote:
Wed Sep 30, 2020 2:09 am
what is defined as DIR_STORAGE ?
This is the definition:
define('DIR_STORAGE', '/home/u803920779/domains/simpleandeasy.shop/public_html/storage/');

But I have another storage file inside the system 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


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by OSWorX » Wed Sep 30, 2020 3:51 am

Diaplo wrote:
Wed Sep 30, 2020 3:17 am
This path is invalid
Because inside the modification folder there is only index.html file
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.


User avatar
Guru Member

Posts

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

Post by letxobnav » Wed Sep 30, 2020 8:49 am

check your modification table in the database, is it empty?
While you are there, check what is in your events table.

and put this:

Code: Select all

$this->log->write(print_r($query,true));
after this:

Code: Select all

if ($query->num_rows) {
in catalog/model/catalog/product.php - function getProduct

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.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan
Who is online

Users browsing this forum: No registered users and 80 guests