Post by rogas » Fri Jun 14, 2013 11:25 pm

I am new in Opencart so bear with me :)

i have a website which is ready to put on public but when i tried to change the store Url by editing the /config.php and /admin/config.php files i get errors. i can log in the admin section but i get errors when i go to the store settings or to a place where the page tries to load images.

old folder was "360" and the new is "treiskiexhnta"


this is the error on the storefront home.

Code: Select all

Notice: Undefined index: token in /var/www/vhosts/xxxxxxxx.com/httpdocs/treiskiexhnta/admin/controller/error/not_found.php on line 16Notice: Undefined index: token in /var/www/vhosts/orestisrovakis.com/httpdocs/treiskiexhnta/admin/controller/error/not_found.php on line 22
and this is when i get in the admin section in system settings.

Code: Select all

SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data

OK

{"country_id":"84","name":"Greece","iso_code_2":"GR","iso_code_3":"GRC","address_format":"","postcode_required":"0","zone":[{"zone_id":"1280","country_id":"84","name":"Attica","code":"AT","status":"1"},{"zone_id":"1281","country_id":"84","name":"Central Greece","code":"CN","status":"1"},{"zone_id":"1282","country_id":"84","name":"Central Macedonia","code":"CM","status":"1"},{"zone_id":"1283","country_id":"84","name":"Crete","code":"CR","status":"1"},{"zone_id":"1284","country_id":"84","name":"East Macedonia and Thrace","code":"EM","status":"1"},{"zone_id":"1285","country_id":"84","name":"Epirus","code":"EP","status":"1"},{"zone_id":"1286","country_id":"84","name":"Ionian Islands","code":"II","status":"1"},{"zone_id":"1287","country_id":"84","name":"North Aegean","code":"NA","status":"1"},{"zone_id":"1288","country_id":"84","name":"Peloponnesos","code":"PP","status":"1"},{"zone_id":"1289","country_id":"84","name":"South Aegean","code":"SA","status":"1"},{"zone_id":"1290","country_id":"84","name":"Thessaly","code":"TH","status":"1"},{"zone_id":"1291","country_id":"84","name":"West Greece","code":"WG","status":"1"},{"zone_id":"1292","country_id":"84","name":"West Macedonia","code":"WM","status":"1"}],"status":"1"}<b>Warning</b>: file_put_contents(/var/www/vhosts/xxxxxxxxxx.com/httpdocs/360/vqmod/logs/Fri.log) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: No such file or directory in <b>/var/www/vhosts/xxxxxxxxx.com/httpdocs/treiskiexhnta/vqmod/vqmod.php</b> on line <b>415</b>LOG FILE COULD NOT BE WRITTEN

i erased vqmod cache but no work.
there must be a place where the folder 360 still shows up.
i triple checked the config files and they are properly edited with the right folders.

Newbie

Posts

Joined
Fri Jun 14, 2013 11:14 pm

Post by bobmartinusa » Mon Sep 09, 2013 5:58 am

did you manage to resolve this problem because I am facing the same problem

New member

Posts

Joined
Sat Mar 16, 2013 5:39 pm

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by timparnell » Fri Nov 15, 2013 6:40 am

I'm getting the same problem. I'm fine local but when I put it online on a customers dev site it give this error.
The zones error seems to be because the JSON data has "LOG FILE COULDN'T BE WRITTEN" appended to the end. So it's not an error with the zones.
I have found through experience of moving from local to live that it is better to install a clean install of OC, install vqmod into your new webspace, then upload everything except your config files. Then import your database overwriting the one you just created with the install. Hope that makes sense.
[Update]: Mine was being caused a base_basedir restriction and I only got round it by the rather dirty means of commenting out the vqmod logging system - simply setting logging to false wasn't enough at line 23

Code: Select all

public $logging = false;
and I only got round it by the rather dirty means of commenting out the vqmod logging system
This is around line 400 of vqmod.php

Code: Select all

// Warning: file_exists(): open_basedir restriction in effect. On bhi.objectivedigital.co.uk
// set logging to false, but error persists.  so commented out all below lines    // tparnell
		//$txt[] = $this->_sep;
		//$txt[] = str_repeat(PHP_EOL, 2);
		//$append = true;

		//if(!file_exists($logPath)) {
		//	$append = false;
		//} else {
		//	$content = file_get_contents($logPath);
		//	if(!empty($content) && strpos($content, ' Date: ' . date('Y-m-d ')) === false) {
		//		$append = false;
		//	}
		//}

		//$result = file_put_contents($logPath, implode(PHP_EOL, $txt), ($append ? FILE_APPEND : 0));
		//if(!$result) {
		//	die('LOG FILE COULD NOT BE WRITTEN');
		//}
I know this is a slightly dangerous route to take, but I have no control over the dev server's settings.
Hope it helps someone.
Tim

tim@pointreddesign.co.uk | http://www.pointreddesign.co.uk


User avatar
New member

Posts

Joined
Wed Feb 01, 2012 11:03 pm
Location - Norwich, Norfolk, UK
Who is online

Users browsing this forum: No registered users and 2 guests