1. Alex
  2. Product Sale and Cost Price
  3. dinsdag, 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
Alex 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. 4 years ago
There are no comments made yet.
Add Comment
  1. more than a month ago
  2. Product Sale and Cost Price
  3. # 1
Alex 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. # 2
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. # 3
Alex 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. # 4
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. # 5
Alex 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
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. # 7
Alex 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. # 8
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. # 9
Alex 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. # 10
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. # 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. 67 posts
  2. 17 subcategories
Sales & Billing
  1. 0 posts
  2. 2 subcategories
Welcome
  1. 4 posts
  2. 2 subcategories

Recent Discussions

How to improve OpenCart performance
I have a website using OpenCart so I have a question to ask everyone how to opt...
37 Hits
0 Votes
Posted on woensdag, maart 27 2024, 08:10 AM
License activation
Hello, I have bought EU VAT Compliant module with unlimited domains license. ...
194 Hits
0 Votes
Posted on woensdag, maart 06 2024, 02:30 PM
  • Resolved
  • Delivery address problem
    Hi, if you specify a different shipping address from the payment address, it doe...
    225 Hits
    0 Votes
    Posted on donderdag, februari 01 2024, 12:48 PM
    EU VAT Compliant problem
    Hello, we have bought your extension EU VAT Compliant in the Opencart Marketplac...
    274 Hits
    0 Votes
    Posted on donderdag, februari 15 2024, 10:17 AM
    Does "short descriptions" work with Open
    Does short descriptions work with open cart 4?...
    364 Hits
    0 Votes
    Posted on woensdag, december 20 2023, 07:50 AM