Cloning Open Cart admin language issue - opencart

I'm trying to clone one fully functioning opencart website to another. The front-end of the website is in Dutch and the back-end I have left English default.
Here are the steps I have taken:
Copy database to new environment
Copy files and edit both the config files(config.php and admin/config.php) to match the server paths.
when i go to test the site, all seems to be working fine, until i go to the admin section where i find this blasted error which seems to be very common:
Notice: Error: Could not load language dutch! in /opt/www/prezent/graviolashop.de/HTML/system/library/language.php on line 39
I'm not sure if this is a path issue or something wrong with the db?
I have googled this issue but none are specific to my perticular case. Has anyone had this issue and resolved it?
Thanks.

If it's unable to load the language and you've copied them over as you say, then this is going to be a config issue. Ensure your path is exactly as it should be. A good way to do this is to create a file such as error.php in your root website folder. Then put some erroneous code in it like
<?php
dfs sdf sd;
Then call the file at www.yoursite.com/error.php, and it will show you the path in the error which you can copy exactly. One other unlikely but possible problem could be permissions, but the former is far more likely

Related

Wagtail Images Suddenly Not Rendering on Front End

I have just encountered an odd problem I'm trying to debug but cannot figure out what is wrong.
I have a wagtail site with images that were all working. At one point I refreshed the browser, and the images suddenly all disappeared from every page.
wagtailimages_tags is there
static is all loaded
the images are all in the correct media directory as specified and have been uploaded through the CMS
if i inspect element, the image is in fact coming through in the code perfectly.
But the site itself just does not show the image. I have checked the CSS and nothing has changed there and it is not hiding the image somehow.
My last resort - I actually started the project over completely in a new environment and added each application one by one to see if I could solve the issue ... nope. No images on the new install from scratch either!
No idea why all the images would suddenly just fail to appear in browser. Just seems super strange to me.
Any ideas on debugging appreciated.
Solved. The path to one of the js files had an extra /js in it and was not loading the file the page needed. The console showed and error and said it could not find /img.url - weird but the file in question where the error was found was the js file with the incorrect path.
This mistake caused every path to load perfectly but strategically blocked a few things globally that a little extra reading of the console would have helped me figure out sooner.
Fixed the .js file path and now all is good.

Is there a way to write to a file in online CMS from a local C++ program?

I created a very customized leaflet map on a Bitrix website (they forced me to, not my choice). Now other coworkers who are basically "afraid" of code need to be able to add markers to that. I already created a C++ program where they can simply enter all the details they want (what category, whats the popupcontent etc.) and it spits out the geoJSON code for the marker for them to copy and paste into the website.
To make it even more easy for them I am wondering if there is a way to basically have my program connect to the internet, go to the backend of my website and, after asking for login, adds the code to the respective .js file that contains only the marker code.
I have been googling the problem but unfortunately couldnt find any other related posts.
Okay I finally found the I guess easiest way, I will force my colleagues to install python and write a little thingy to concatenate the code and upload it using Selenium. Thanks for your help guys!

(vqmod) Error: Could not load language total/sub_total

I have moved my Opencart website to a new host, and I receive the error:
Notice: Error: Could not load language total/sub_total! in
.../vqmod/vqcache/vq2-system_library_language.php on line 41
How do I resolve this?
I have tried renaming vqmod/xml to vqmod/xml.bad, with no result.
I have tried renaming /vqmod/vqcache to /vqmod/vqcache.bad, with no result.
Update:
In \system\library\language.php, I commented out an else branch which resulted in an application exit.
Most probable reason can be that you are missing one of the following file:
catalog/language/english/total/sub_total.php
admin/language/english/total/sub_total.php
if you are missing them, upload them from a fresh copy of opencart and then try.
and put back that else , error will be error, not displaying error will not solve it
The most logical explanation for this is that the language file you need is missing. This isn't necessarily the english language one if you have multiple languages so you will need to validate them all
Check that the language files
admin/language/language-name-here/total/sub_total.php
exists if you receive this in the admin area, or
catalog/language/language-name-here/total/sub_total
if it's on the customer side
The other possibility is that the file is simply corrupt, in which case I would recommend just re-uploading all of these files from a clean copy. Note that the vQmod reference is simply because vQmod has altered the language load file (this is standard for vQmod to do for it to work). If you don't have any modifications that specifically alter the way languages work, this isn't going to be the cause of the error
I believe there was a bug in earlier versions of 1.5.X that caused this kind of problem too, so if you're not on a reasonably recent version I would recommend an upgrade as well

coldfusion application.cfc not found

I've been having a sporadic problem for a few weeks where on restarting the CF Server (Enterprise 9) one of my applications runs without ColdFusion referencing all the variables in the Application.cfc file. It's in the same folder as the CFML pages, it IS properly capitalised as Application.cfc, but it seems to just be ignored. Obviously this causes problems with datasource name and all the other variables I set in Application.cfc. For reference, I'm using an Application.cfc file based on Ben Nadel's excellent intro at http://www.bennadel.com/blog/726-ColdFusion-Application-cfc-Tutorial-And-Application-cfc-Reference.htm . Usually my requested template runs as an include and I can see it in the stack using debugging output, now I can't see it there at all. It's as if the file just doesn't exist.
Has anyone else experienced this, or can you think of possible solutions? Note that at times a restart has got the whole thing running perfectly smoothly.
Re folder structure it's really simple: the Application.cfc file is in the web root along with executable CFML templates - included templates, images, CSS etc are in separate folders referenced via relative paths.
There is another application with its own similar Application.cfc file that is in a sub-directory of the web root. This is running perfectly.
Try clearing your template cache. I've see cases where CF just gets flakey and the cached files are causing issues. Another option: Does ColdFusion have permissions to read/execute the Application.cfc? If this WAS an issue but is no longer an issue I've seen cases where the template cache was causing these files not to be found. Again, delete these files (from disk, not the cfadmin) and try again.

schema in Django with sqlite

I am new to Django, i was going through this Django site for building up a basic app.
They have explained the procedure's to use either SQLITE3 , MYSQL, postgresql... I used SQLITE3 as they tell about it being a single large file which makes it easy to use initially.
The problem i am facing is to use .schema to check the database created. I checked certain sites which tell about using it. But i am getting stuck and i m confused to use it.
What i did was
$sqlite3
sqlite>.schema
sqlite>
This above code didnt work, then i came across a forum where they told to install a add_on to Mozilla fox, which didnt work to me as there was a compatibility issue. I even specified the path name where i have this database file located.
$sqlite3
sqlite> /home/ntan3/Django-1.2.3/mysite/eg_sqlite.db
which gave an error saying wrong syntax near '/' .
The thing is could successfully run
the sample application explained by
the Django site.
but i wanted to see the Database created. Please Help
could anyone guide me a proper way to do it? even a specific link is also helpful.
Thank you.
This is basic command-line stuff. You need to pass in the path to the db file when you type sqlite3:
$ sqlite3 /home/ntan3/Django-1.2.3/mysite/eg_sqlite.db