add new language and currency error?

Tagged: 

ThemeBurn SupportForumsOpenCart ThemesBurnEngineadd new language and currency error?

This topic has been marked as not resolved.

Hello,

I am trying to add a new currency and even a new language and after adding one i get the site down with the following error

Fatal error: ‘This method is not added as callable: getCurrencySymbol’
in /home/b0337235/public_html/system/vendor/BurnEngine/library/DataBag.php:28
Stack trace:
#0 catalog/view/theme/BurnEngine/template/common/currency.tpl(15): TB_DataBag->__call(‘getCurrencySymb…’, Array)
#1 catalog/view/theme/BurnEngine/template/common/currency.tpl(15): TB_ViewDataBag->getCurrencySymbol(Array)
#2 system/storage/modification/system/library/template/basic.php(18): require(‘/home/b0337235/…’)
#3 system/library/template.php(20): Template\Basic->render(‘BurnEngine/temp…’)
#4 system/storage/modification/system/engine/loader.php(91): Template->render(‘BurnEngine/temp…’)
#5 catalog/controller/common/currency.php(49): Loader->view(‘common/currency’, Array)
#6 [internal function]: ControllerCommonCurrency->index(Array)
#7 system/storage/modification/system/engine/action.php(44): call_user_func_array(Array, Array)
#8 system/storage/modification/system/engine/loader.php(40): Action->execute(Object(Registry), Array)
#9 catalog/controller/common/header.php(127): Loader->controller(‘common/currency’)
#10 [internal function]: ControllerCommonHeader->index(Array)
#11 system/storage/modification/system/engine/action.php(44): call_user_func_array(Array, Array)
#12 system/storage/modification/system/engine/loader.php(40): Action->execute(Object(Registry), Array)
#13 catalog/controller/common/home.php(17): Loader->controller(‘common/header’)
#14 [internal function]: ControllerCommonHome->index()
#15 system/storage/modification/system/engine/action.php(44): call_user_func_array(Array, Array)
#16 catalog/controller/startup/router.php(25): Action->execute(Object(Registry))
#17 [internal function]: ControllerStartupRouter->index()
#18 system/storage/modification/system/engine/action.php(44): call_user_func_array(Array, Array)
#19 system/engine/front.php(34): Action->execute(Object(Registry))
#20 system/engine/front.php(29): Front->execute(Object(Action))
#21 system/framework.php(99): Front->dispatch(Object(Action), Object(Action))
#22 index.php(22): require_once(‘/home/b0337235/…’)
#23 {main}

Can you give a helping hand in what i did wrong and how to fix this?

Thank you.
Lucian

April 19, 2017 at 11:37 pm #58421

I must mention that on default theme it works… only when i sw to your theme it crashes.

April 21, 2017 at 4:53 pm #58470

Hi,

Can we take a look at the live website? We will need need admin and ftp access to check your configuration.

You can use hidepost to share private information with the support staff.

BR,
ThemeBurn team

April 21, 2017 at 5:20 pm #58472

Just don’t kill the site :P , I have replicated this problem with a fresh opencart and clean latest theme. So just add and enable a currency or / and a new language…

Please let me know what is wrong there as i would need a new domain on that site :)

Many thanks.
Lucian

April 21, 2017 at 9:26 pm #58480

Did you get by any chance any feedback on this one?

thanks alot.

April 25, 2017 at 10:22 am #58555

Another huge issue is that cache (especialy for desktop fails often with alot of products giving a HTTP ERROR 500, so i go to the mobile and when i load the page there then it becomes again available on desktop).

Third issue is that i tried to create giraffe-shoes.hu (just with some colour scheme changes) and i got the same problem.

And final (for now), i have cross link cache problems as i land up from giraffe-shoes.hu to giraffe-shoes.ro almost randomly (i guess also some cache/cookie stuff)

I even tried to delete and redo the .hu store and now i get that an order is done for that store and i cannot figure out what the order id is as in the order details all seem to be done on the default (.ro) shop

  • This reply was modified 93 days ago by  LucianSuciu.
April 26, 2017 at 2:48 pm #58576

Hi,

There is an issue indeed, but there is a quick workaround. All you have to do is clear the theme’s cache, immediately after adding new language/currency in opencart.

We will provide a fix to this issue with our next theme update, to avoid the need for the workaround.

Regards,
ThemeBurn team

April 30, 2017 at 6:50 pm #58673

what about the other big issue… the cross domain cache redirect? it is very often and my users get redirected from a site to another and write to me i was “hacked and cloned”, this is really an issue.

April 30, 2017 at 10:44 pm #58674

i would even go with some referral blockage/ redirect solution for the cache so whateva link lands on the wrong site to be redirected by referal to the original one… but my tries until now are with no luck as they break the loading of some elements on the site itself…

April 30, 2017 at 10:46 pm #58675

The cache issue is more and more problematic. Now i get this also -find in attachment . Can you get a solution for your cache system as this is generating more problems than i get from the speed of the site; even so even with cache it is not the fastest anyway … :(

May 1, 2017 at 2:29 pm #58678

About the cross-cache issue. Have you noticed some pattern when being redirected from .hu to .ro ? For exampe, does it happen when you click a ‘category’ link, ‘product’ link or do a checkout ? Does it happen on mobile, desktop or both ? We really clicked tens of times on links on .hu and weren’t able to land on .ro.

We are also not able to invoke the ‘HTTP ERROR 500′ page on products. Can you send us a message when a page starts to get this error, so we can analyze it ?

Also, you could provide the exact url, which produced the error from the attachemnt in your last post.

Also it seems there is an .htaccess redirect that seems to ‘undo’ the seo urls, redirecting them to a non-seo version with ‘index.php’ in the url. Is this intentionally ?

Sorry, for not being able to resolve your issues directly, but it seems you are the only one, who gets them. This can be connected with your server environment, specific OpenCart version (we have almost no customers with OC 2.2.0.0) or some issue in our code that is hard to spot. With thousands of support questions, the most obvious bugs appear on several people at last, so we have input data that helps us to resolve them. In your case we have only your descriptions and we are not able to reproduce the errors after 100-200 page refresh, so they seem to be truly random.

We need your assistance, so please send an email when some of these issues appear and provide the exact url so we can see the error and check what’s going on.

Regards,
ThemeBurn team

May 2, 2017 at 8:58 am #58705

Hello,

Indeed this is a really random issue, and it does not happen for days. And then suddenly we get that. My guess is that when the cache expires and rebuilds it may be that it rebuilds with errors or the “lucky” person that is the one browsing the site in that moment has some fault cookies and it gets crisscrossed. ( i am just guessing here ). Is there maybe a healtcheck mechanism to be installed for when this cache is created?
There is no specific page that gets this, i even got it when hitting the enter key after writing some prod code in the search bar :) .
The 500 code is again random as it only get out from some products (not even all) and if you load the same page from the mobile then the cache gets rebuild and it works from desktop to. ( i can’t remember for sure but i think the viceversa happend also).
So your refresh for hundreds of time will for sure not replicate as when it works it will work until something will break from the cache and it is probably not from you.

I am not sure how to proceed here. Would it be too much to ask for your skype contact let’s say , and when it happens to get you a quick notice and maybe you can take a look on it when it happens? as i cannot keep the site out of order for hours and weeks.

About the printscreen it was from when you tried to add something in the cart from the mobile version( i did not try the desktop before cleaning the cache that solved once again the issue)

About the seo part this is what i have, The only part i altered from the default opencart version are the https redirects and the ip redirect as the cache was also a problem here ( the domains dot replaced with the ip). should i replace RewriteRule ^(.*) https\:\/\/giraffe-shoes\.ro\/$1 [R=301,L]
with RewriteRule ^(.*) https\:\/\/giraffe-shoes\.ro\/index.php?_route_=$1 [L,QSA]
?

#Code: Select all
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

#RewriteCond %{HTTPS} !=on
#RewriteCond %{HTTP_HOST} ^giraffe-shoes\.hu$ [OR]
#RewriteCond %{HTTP_HOST} ^www\.giraffe-shoes\.hu$
#RewriteCond %{HTTP_REFERER} ^www\.giraffe-shoes\.ro$
#RewriteCond %{HTTP_REFERER} giraffe-shoes.ro [NC]
#RewriteRule ^(.*) https\:\/\/giraffe-shoes\.ro\/$1 [R=301,L]

RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^giraffe-shoes\.ro$ [OR]
RewriteCond %{HTTP_HOST} ^www\.giraffe-shoes\.ro$ [OR]
RewriteCond %{HTTP_HOST} ^\d+\.\d+\.\d+\.\d+$
RewriteRule ^(.*) https\:\/\/giraffe-shoes\.ro\/$1 [R=301,L]

RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^giraffe-shoes\.hu$ [OR]
RewriteCond %{HTTP_HOST} ^www\.giraffe-shoes\.hu$ [OR]
RewriteCond %{HTTP_HOST} ^\d+\.\d+\.\d+\.\d+$
RewriteRule ^(.*) https\:\/\/giraffe-shoes\.hu\/$1 [R=301,L]

May 2, 2017 at 9:52 am #58711

related to seo links i have tried to add

how can i get rid of RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
?

May 4, 2017 at 12:33 pm #58765

Once again the cache problem… This site is becoming unusable in this way… Clients are writing every day and every day i need to search and load the product from the mobile to get the desktop version to rebuild the cache and work for that product. Please help.

May 4, 2017 at 5:58 pm #58795

I even get now something lie this: when i put a code in the search (both desktop and mobile version) eg 100002 and hit enter i get redirected either to the .hu version altogether or to the hu language of the .ro site… i really am starting to think of some migration to another theme as this is really a bad thing for us.

May 4, 2017 at 6:23 pm #58802
Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.