1. Dennis Buijs
  2. Product Sale and Cost Price
  3. Tuesday, December 17 2019, 12:58 PM
  4.  Subscribe via email
i am assisting a store owner on adding the sale/cost price module for their opencart store. 'OWC Product Sale and Cost Price' installed and enabled without any issue, but when attempting to access the module configuration, the following error is reported:


Notice: Trying to get property 'OwcBase' of non-object in /srv/stinger_prod/htdocs/store/system/library/owc/controller/owc_controller.php on line 23


from the apache error log:

root@lima:~# tail /var/log/apache2/error.log -n1 | sed -e 's/\\n/\n/g'
[Tue Dec 17 12:42:27.966834 2019] [php7:error] [pid 17114] [client 127.0.0.1:56792] PHP Fatal error: Uncaught Error: Call to a member function getModulePath() on null in /srv/stinger_prod/htdocs/store/system/library/owc/controller/owc_controller.php:23
Stack trace:
#0 /srv/stinger_prod/htdocs/store/system/library/owc/controller/owc_productsalecostprice_admin.php(13): ControllerOWCController->getModulePath()
#1 /srv/stinger_prod/cart.storage/modification/system/engine/action.php(79): AdminControllerOWCProductSaleCostPrice->index()
#2 /srv/stinger_prod/htdocs/store/admin/controller/startup/router.php(26): Action->execute(Object(Registry), Array)
#3 /srv/stinger_prod/cart.storage/modification/system/engine/action.php(79): ControllerStartupRouter->index()
#4 /srv/stinger_prod/htdocs/store/system/engine/router.php(67): Action->execute(Object(Registry))
#5 /srv/stinger_prod/htdocs/store/system/engine/router.php(56): Router->execute(Object(Action))
#6 /srv/stinger_prod/htdocs/store/system/framework.php(165): Router->dispatch(Object(Action), Object(Action))
#7 /srv/stinger_prod/htdocs/store/vqmod/vqcache/vq2-system_ in /srv/stinger_prod/htdocs/store/system/library/owc/controller/owc_controller.php on line 23, referer: https://www.stinger-performance.com/store//admin/index.php?route=marketplace/extension&;user_token=...


any troubleshooting or repair steps to address this?
Comment
There are no comments made yet.
Add Comment
Accepted Answer
Dennis Buijs Accepted Answer
0
Votes
Undo
Hi

It is working now, deleted vqmod\mods.cache file so it is now re-generated.

Keep in mind, I saw that you storage folder is outside the htdocs. Vqmod is not handling this good, so it can be that your vqmod\checked.cache file will be growing in size. When the size is big, the website will slow down. Or put the storage folder back into htdocs folder, you can use a different location then default, that is ok. Or sometimes clear both files checked.cache and mods.cache files.

Best regards
Dennis
Comment
There are no comments made yet.
Add Comment
Dennis Buijs Accepted Answer
0
Votes
Undo
Hi

Did you have installed vqmod https://github.com/vqmod/vqmod/releases/tag/v2.6.4-opencart ?

Best regards
Dennis
Comment
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. Product Sale and Cost Price
  3. # 1
Dennis Buijs Accepted Answer
0
Votes
Undo
vqmod is installed, v2.6.4


root@lima:/srv/stinger_prod/htdocs/store# ag 'current version number' vqmod/vqmod.php
7: public static $_vqversion = '2.6.4'; // Current version number
root@lima:/srv/stinger_prod/htdocs/store# ls vqmod/xml/ -lnh
total 56K
-rwxrwxr-x 1 33 1000 6.3K Mar 23 2019 dazzling.xml
-rw-rw-r-- 1 33 1000 4.4K Mar 23 2019 owc_core.xml
-rw-rw-r-- 1 33 1000 11K Mar 23 2019 owc_productsalecostprice_reports.xml
-rw-rw-r-- 1 33 1000 13K Mar 23 2019 owc_productsalecostprice_template_twig.xml
-rw-rw-r-- 1 33 1000 7.5K Mar 23 2019 owc_productsalecostprice.xml
-rwxrwxr-x 1 33 1000 1.8K May 13 2019 vqmod_opencart.xml
Comment
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. Product Sale and Cost Price
  3. # 2
Dennis Buijs Accepted Answer
0
Votes
Undo
Ok, make sure to do an Opencart refresh modifications, then it must be working!
Comment
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. Product Sale and Cost Price
  3. # 3
Dennis Buijs Accepted Answer
0
Votes
Undo
modifications refreshed, no change in behaviour


----------------------------------------------------------------
2019-12-18 11:52:04 - MOD: Modification Default

FILE: system/engine/action.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 69

FILE: system/engine/loader.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 77
LINE: 151
LINE: 168

FILE: system/library/config.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 59

FILE: system/library/language.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 67
LINE: 73

FILE: system/library/template/template.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 18

FILE: system/library/template/twig.php
CODE: $loader = new \Twig_Loader_Filesystem(DIR_TEMPLATE);
LINE: 19
----------------------------------------------------------------
MOD: Dark Velvet Template by GrandCMS.com

FILE: catalog/view/theme/default/template/common/header.twig
CODE: <link href="/catalog/view/theme/default/stylesheet/stylesheet.css" rel="stylesheet">
LINE: 24
CODE: <body>
LINE: 40

FILE: catalog/view/theme/default/template/common/footer.twig
CODE: </body></html>
LINE: 52
----------------------------------------------------------------
MOD: X-Shipping Pro

FILE: catalog/controller/common/footer.php
CODE: return $this->load->view('common/footer
LINE: 64

FILE: catalog/view/theme/DarkVelvet-Red/template/common/footer.twig
CODE: </body>
LINE: 54
CODE: </body>
LINE: 55
----------------------------------------------------------------
Attachments (1)
Comment
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. Product Sale and Cost Price
  3. # 4
Dennis Buijs Accepted Answer
0
Votes
Undo
Can you provide me admin and ftp settings? You can put it in the site details tab.
Comment
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. Product Sale and Cost Price
  3. # 5
Dennis Buijs Accepted Answer
0
Votes
Undo
apologies in the delay. created user on staging, which has the same issue as prod. details on site details tab.
Comment
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. Product Sale and Cost Price
  3. # 6
Dennis Buijs Accepted Answer
0
Votes
Undo
Hi

Vqmod is not running because of I think a unix owner issue. Check this url:
https://stage.stinger-performance.com/store/test.php with result OK,
and this url:
https://stage.stinger-performance.com/store/vqmod/test.php with error result.

When you have fixed it, enter url https://stage.stinger-performance.com/store/vqmod/install and check the cache folder in vqmod.

Best regards
Dennis
Comment
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. Product Sale and Cost Price
  3. # 7
Dennis Buijs Accepted Answer
0
Votes
Undo
nah, not a ownership issue, it's because vqmod's .htaccess are written for apache 2.2 and not 2.4. Updated vqmod/.htaccess and vqmod/install/.htaccess. vqmod/install shows already installed.

odd thing now is stage is working, but prod is still throwing the class exception.

moved your ftp account up a dir so you can poke around stage and prod, and added an admin account on opencart for prod.
Comment
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. Product Sale and Cost Price
  3. # 8
Dennis Buijs Accepted Answer
0
Votes
Undo
Ok, good to hear.
Try refresh modifications and cache.
Comment
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. Product Sale and Cost Price
  3. # 9
Dennis Buijs Accepted Answer
0
Votes
Undo
caches (opencart, vqmod) purged, modifications refreshed, no change in prod behaviour.

is it a non destructive operation to uninstall and reinstall the entire module?
Comment
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. Product Sale and Cost Price
  3. # 10
Dennis Buijs Accepted Answer
0
Votes
Undo
thanks for the help Dennis. I'll get that storage folder moved back under htdocs.
Comment
  1. Dennis Buijs
  2. 5 years ago
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. Product Sale and Cost Price
  3. # 11
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Welcome

Categories

OpenCart Free Extension
  1. 1 post
  2. 2 subcategories
OpenCart Commercial Extension
  1. 73 posts
  2. 17 subcategories
Sales & Billing
  1. 0 posts
  2. 2 subcategories
Welcome
  1. 6 posts
  2. 2 subcategories

Recent Discussions

EU VAT Compliant issue
Hello, we use the EU VAT Compliant plugin. It is working correctly in opencar...
164 Hits
0 Votes
Posted on Wednesday, December 11 2024, 09:26 AM
Error log issues for version 3.21
Hi Get this info in error log: 2024-10-08 23:45:32 - PHP Warning: Undefin...
392 Hits
0 Votes
Posted on Tuesday, October 08 2024, 09:53 PM
OWC EU VAT Compliant v3.15 - ocmod bug
When I edit user data and try to save, I get an error: Fatal error: Uncaught ...
547 Hits
0 Votes
Posted on Wednesday, August 28 2024, 09:22 AM
Very Critical BUG: Swiss VAT IDs are accepted as V
Hello, the Extensions incorrectly accepts Swiss Tax numbers as valid VAT numb...
551 Hits
0 Votes
Posted on Tuesday, August 27 2024, 12:55 PM
The buyer does not see second address and postal c
The buyer does not see the Administrator's modified second address and postal co...
635 Hits
0 Votes
Posted on Tuesday, August 20 2024, 11:06 AM