opencart 2.1 www.themeatshack.shop
this has been working fine for nearly two years but i need to keep clearing down the error log.
i assume its just a warning but it doesnt seem to be doing any harm...
i would like to know how to switch it off or fix it... here is a snippet
any help would be welcome
george
2019-06-19 9:07:23 - PHP Notice: Undefined variable: text_itemsno in /var/sites/t/themeatingjoint.shop/public_html/tmjb/catalog/view/theme/netbiz/template/common/cart.tpl on line 3
2019-06-19 9:07:23 - PHP Notice: Undefined variable: text_itemstxt in /var/sites/t/themeatingjoint.shop/public_html/tmjb/catalog/view/theme/netbiz/template/common/cart.tpl on line 3
2019-06-19 9:07:30 - PHP Notice: Undefined variable: services in /var/sites/t/themeatingjoint.shop/public_html/tmjb/catalog/view/theme/netbiz/template/common/column_left.tpl on line 8
2019-06-19 9:07:30 - PHP Notice: Undefined variable: text_itemsno in /var/sites/t/themeatingjoint.shop/public_html/tmjb/catalog/view/theme/netbiz/template/common/cart.tpl on line 3
2019-06-19 9:07:30 - PHP Notice: Undefined variable: text_itemstxt in /var/sites/t/themeatingjoint.shop/public_html/tmjb/catalog/view/theme/netbiz/template/common/cart.tpl on line 3
2019-06-19 9:07:30 - PHP Notice: Undefined variable: icon in /var/sites/t/themeatingjoint.shop/public_html/tmjb/vqmod/vqcache/vq2-catalog_view_theme_netbiz_template_common_header.tpl on line 21
2019-06-19 9:07:30 - PHP Notice: Undefined variable: google_analytics in /var/sites/t/themeatingjoint.shop/public_html/tmjb/vqmod/vqcache/vq2-catalog_view_theme_netbiz_template_common_header.tpl on line 70
2019-06-19 9:07:30 - PHP Notice: Undefined variable: text_contact in /var/sites/t/themeatingjoint.shop/public_html/tmjb/vqmod/vqcache/vq2-catalog_view_theme_netbiz_template_common_header.tpl on line 160
2019-06-19 9:07:30 - PHP Notice: Undefined variable: text_wishlistno in /var/sites/t/themeatingjoint.shop/public_html/tmjb/vqmod/vqcache/vq2-catalog_view_theme_netbiz_template_common_header.tpl on line 165
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
however...
since
the site is functioning correcly for users and my customer I am loathe to make any change which is even vaguely risky and
I am not the original developer, I know nothing about plugins which were installed by the previous developer who (a) has not documented his work nor (b) willing to share that with me (understandably in some respects) nor do I have sufficien knowledge to attempt to correctly reinstall the plugins nor have any php knowledge to know where to set variables or how to set them...
so sadly i was looking for perhaps a way of preventing these being rported in the error log.
maybe you cannot.
george
Code: Select all
$_['text_itemsno'] = 'itemsno';
$_['text_itemstxt'] = 'itemstxt';
$_['services'] = 'services';
$_['icon'] = 'icon';
you can change the text to your liking, its a hacky workaround if you just want to get rid of the warnings
It seems you are using some old files.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Do not know from where do you have the template.
The variable google_analytics exists since OpenCart 1.5.x - therefore really old.
But you have:
Which means this varibale/value is not defined inside the controller, but the template is trying to use it.2019-06-19 9:07:30 - PHP Notice: Undefined variable: google_analytics in /var/sites/t/themeatingjoint.shop/public_html/tmjb/vqmod/vqcache/vq2-catalog_view_theme_netbiz_template_common_header.tpl on line 70
Why this variable is not defined in the controller - I do not know.
But it should be.
As written - edit the controller for this.
Newer files?
Was just an assumption.
The whole issue looks to me not very professional.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
thank you for the clarification..
as i explained i took over the site from developers who made hardcode changes to core files as well as the template.... so its not ny template but i cannot change it nor use anothenr template ... it breaks their site... so im going t try the hack the previous poster let... see if it makes any difference on my test site....
Why can't you change it?
If you are not comfortable in editing files, hire some professional.
But this small tasks do not require any high paid pro.
No matter if it's yours or anothers template.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
simple changes are having unexpected effects elsewhere... besides the customer has no budget for ANY change except if the site is broken.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
... the language file is englishphp ... i added it at end of file but not made any difference i, afraid.wrick0 wrote: ↑Wed Jun 19, 2019 7:10 pmadd this to your catalog/language/en-gb/en-gb.php
and see if that gets rid of the warnings ?Code: Select all
$_['text_itemsno'] = 'itemsno'; $_['text_itemstxt'] = 'itemstxt'; $_['services'] = 'services'; $_['icon'] = 'icon';
you can change the text to your liking, its a hacky workaround if you just want to get rid of the warnings
Sorry, but this thread is about that few log entries.zzzzzz2 wrote: ↑Thu Jun 20, 2019 3:22 amit is not a small job - i already have had two teams seperately check it and comment that core files and the template files have been extensively hacked...
simple changes are having unexpected effects elsewhere... besides the customer has no budget for ANY change except if the site is broken.
And this IS a small job fixing them, maybe 7-12 minutes - not more.
If these two teams are not able to fix that few lousy entries, they are not worth the money!
Because they do not understand how OpenCart works.
And (!!) as straightlight already mentioned: never touch a core file!
If any of the forum readers here will ever meet a developer doing so, fire him as quick as possible!
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Have you edited admin or catalog file?
Nevertheless, I recommend to hire some of the real OpenCart pros here.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
i am working for free ... there is NO budget.... NO money ... hope you understand... no money to pay anybody...
If no investment are involved with your planning and support projects for your clients, then you should not consider to use an ECommerce platform to sale products and services online without a pre-determined budget to reach your goals. By using an ECommerce platform, product licensing are involved with service providers which means if you're able to spend your monthly charge via your service providers, then you are already not working for free at this point.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Errors in another website themeatingjoint.shop
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
you are being pedantic but I will respond to your points...
the client had budget for development but business circumstances have changed (he has started a prison sentance.. ) his wife is running the business with heavy legal costs to deal with.
themeatingshack.shop is my test site for the business.
Yes there are costs which I have reminded her she will incur but there is absolutely no budget to pay for my time or a developers time or anything else.
I was loathe to describe this detail let alone any further detail, but I do feel an obligation to help as best as I can without incurring costs (they are fundamentally decent people) but I need to explain where I am with this project.
I do have a vested interest in using my experience with these guys to develop an enhanced product for a niche market ... but that will be at my cost.
hopefully that clarifies.
Users browsing this forum: No registered users and 86 guests