Página 1 de 3

vqmod

Enviado: 30 Jan 2013, 16:39
por nilsondiniz
PHP Parse error: parse error in E:\home\olimpiacos\Web\vqmod\install\index.php on line 60

estou tendo esse erro na instalaçao alguem sabe por que ? obrigado

Re: vqmod

Enviado: 30 Jan 2013, 20:27
por Renato Frota
Você está instalando a versão correta do vqmod para a sua versão de loja?

Re: vqmod

Enviado: 30 Jan 2013, 23:15
por nilsondiniz
ola renato, obrigado pelo interesse ! a versão da loja é 1.5.4 e a do vqmod é 2.1.6 e a ultima que vi la nos download .

Re: vqmod

Enviado: 30 Jan 2013, 23:41
por Renato Frota

Re: vqmod

Enviado: 30 Jan 2013, 23:57
por nilsondiniz
o manoel me passo a ultima versao, mas o erro mudo de line no php

PHP Parse error: parse error in E:\home\olimpiacos\Web\vqmod\install\index.php on line 72

Re: vqmod

Enviado: 31 Jan 2013, 00:53
por Renato Frota
Qual webserver você está usando?

A linha 72 no meu install.php é uma continuação de um parâmetro de função iniciada na linha 71, então não teria como dar erro nela!

Ou o seu vqmod tá corrompido ou seu webserver não suporta as funções de instalação automáticas do vqmod (que fazem alterações nos arquivos index.php da loja e da admin).

Você pode instalar o vqmod manualmente seguindo o guia do site oficial.

Re: vqmod

Enviado: 31 Jan 2013, 00:55
por nilsondiniz
meu webservice e uolhost entao acabei de fazer e nao deu tmbm deu erro na loja nem abriu mais a pagina rssrr voltei os arquivos originais para voltar a funcionar

Re: vqmod

Enviado: 31 Jan 2013, 00:58
por nilsondiniz
a algum tempo atras eu usei o vqmod e uma loja teste no mesmo servidor e funcionava certinho mas a versao do opencart era mais inferior que essa que estou usando agora

Re: vqmod

Enviado: 31 Jan 2013, 01:29
por nilsondiniz
<?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'); ---------------------------------------- aqui da o erro linha 72
$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');---------------------------aqui da o erro linha 94
$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!');

Re: vqmod

Enviado: 31 Jan 2013, 06:37
por Renato Frota
Tem alguma coisa errada no seu arquivo, cara...
talvez o seu descompressor de zip.

Olha os trechos:
70-73
Código: Selecionar todos
// Pattern to add vqmod include 
$u->addPattern('~// Startup~', '// VirtualQMOD
require_once(\'./vqmod/vqmod.php\');
$vqmod = new VQMod();
88-91
Código: Selecionar todos
// Pattern to add vqmod include 
$u->addPattern('~// Startup~', '//VirtualQMOD
require_once(\'../vqmod/vqmod.php\');
$vqmod = new VQMod();