Post by lanceox » Sun Jul 14, 2013 9:11 pm

Hi guys.

Originally i have designed the site within the opencart/upload file. I have then moved everything to my site.

Im getting the following error when trying to fix vqmod.

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in D:\Hosting\11229746\html\opencart-1.5.5.1\upload\vqmod\install\index.php on line 75


The problem is with the first line below:

Code: Select all

// VQMODDED Startup~', '// VirtualQMOD
require_once(\'./vqmod/vqmod.php\');
$vqmod = new VQMod();
The following is the code:

Code: Select all

<?php

/**
 * UGRSR
 * 
 * @package Simple vQmod OpenCart install script
 * @author Jay Gilford - http://jaygilford.com/
 * @copyright Jay Gilford 2011
 * @version 0.3
 * @access public
 * 
 * @information
 * This file will perform all necessary file alterations for the
 * OpenCart index.php files both in the root directory and in the
 * Administration folder. Please note that if you have changed your
 * default folder name from admin to something else, you will need
 * to edit the admin/index.php in this file to install successfully
 * 
 * @license
 * Permission is hereby granted, free of charge, to any person to
 * use, copy, modify, distribute, sublicense, and/or sell copies
 * of the Software, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software
 * 
 * @warning
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESSED OR IMPLIED.
 *  
 */

// Counters
$changes = 0;
$writes = 0;

// Load class required for installation
require('ugrsr.class.php');

// Get directory two above installation directory
$opencart_path = realpath(dirname(__FILE__) . '/../../') . '/';

// Verify path is correct
if(!$opencart_path) die('COULD NOT DETERMINE CORRECT FILE PATH');

$write_errors = array();
if(!is_writeable($opencart_path . 'index.php')) {
	$write_errors[] = 'index.php not writeable';
}
if(!is_writeable($opencart_path . 'admin/index.php')) {
	$write_errors[] = 'Administrator index.php not writeable';
}

if(!empty($write_errors)) {
	die(implode('<br />', $write_errors));
}

// Create new UGRSR class
$u = new UGRSR($opencart_path);

// remove the # before this to enable debugging info
#$u->debug = true;

// Set file searching to off
$u->file_search = false;

// Add both index files to files to include
$u->addFile('index.php');

// Pattern to add vqmod include 
$u->addPattern('~// VirtualQMOD
require_once('/vqmod/vqmod.php');
$vqmod = new VQMod();

// VQMODDED Startup~', '// VirtualQMOD
require_once(\'./vqmod/vqmod.php\');
$vqmod = new VQMod();

// VQMODDED Startup');

$result = $u->run();
$writes += $result['writes'];
$changes += $result['changes'];

$u->clearPatterns();
$u->resetFileList();

// Rename the admin part of the text below if you've
// changed your admin folder name
$u->addFile('admin/index.php');

// Pattern to add vqmod include 
$u->addPattern('~// VirtualQMOD
require_once('./vqmod/vqmod.php');
$vqmod = new VQMod();

// VQMODDED Startup~', '//VirtualQMOD
require_once(\'../vqmod/vqmod.php\');
$vqmod = new VQMod();

// VQMODDED Startup');


$result = $u->run();
$writes += $result['writes'];
$changes += $result['changes'];

$u->addFile('index.php');

// Pattern to run required files through vqmod
$u->addPattern('/require_once\(DIR_SYSTEM \. \'([^\']+)\'\);/', 'require_once($vqmod->modCheck(DIR_SYSTEM . \'$1\'));');

// Get number of changes during run
$result = $u->run();
$writes += $result['writes'];
$changes += $result['changes'];

// output result to user
if(!$changes) die('VQMOD ALREADY INSTALLED!');
if($writes != 4) die('ONE OR MORE FILES COULD NOT BE WRITTEN');
die('VQMOD HAS BEEN INSTALLED ON YOUR SYSTEM!');

Newbie

Posts

Joined
Fri Jun 07, 2013 1:15 am

Post by cwswebdesign » Thu Jul 18, 2013 7:40 am

Try re-installing vqmod and you might also have to clear out the existing vqmod cache.

DL

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by lanceox » Sat Jul 27, 2013 4:42 am

thanks for the reply The vqcache folder is empty.

Any ideas.

Newbie

Posts

Joined
Fri Jun 07, 2013 1:15 am

Post by cwswebdesign » Sat Jul 27, 2013 5:47 am

lanceox wrote:thanks for the reply The vqcache folder is empty.

Any ideas.
Does your 1.5.5.1 version include the new amazon and paypal payment options?

DL

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by lanceox » Sun Jul 28, 2013 4:56 pm

This is just a fresh install and nothing has been changed. I tried reinstalling everything again to a different directory i.e. root/opencart and it works.

Followed the same steps to reinstall this on the root directory and again it stops working.

Not sure what is happening with it

Newbie

Posts

Joined
Fri Jun 07, 2013 1:15 am
Who is online

Users browsing this forum: Semrush [Bot] and 41 guests