Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

[Решено?..] Проблемы после усиновки VQMOD


olga79
 Share

Recommended Posts

Пробую усиновить по http://tvorzasp.com/blog/ustanovka-i-ispolzovanie-vqmod . Пункты 1-3 и 5 сгделала, проблема с пунктом 4) Редактируем index.php (мой путь httpdocs /********.ru - может не им лежит)

Находим код:и т.д. проблемы, в файле нет указанных данных. Отображается

<?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('~// 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('~// 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!');

на сайте

index.php not writeable

Administrator index.php not writeable

Что это?* По вопросам -отвеим до меня: врогде неправильный путь указан. ггде его правильно указать и им ли расположен файл и как вернуть все на место. п.с. Я супер-чайник.

Link to comment
Share on other sites


  • 3 weeks later...
  • 2 months later...
  • 1 month later...
  • 2 weeks later...

если ошибка:

 

index.php not writeable
Administrator index.php not writeable
 

то гделаем, как написано в мануно по усиновке: 

  • Also be sure index.php and admin/index.php are writable.

    • If not sure which you need, first try 755.
    • If you get errors about permissions, then try 777.
Link to comment
Share on other sites


  • 1 month later...

 

если ошибка:






index.php not writeable
Administrator index.php not writeable
 

то гделаем, как написано в мануно по усиновке: 

  •  

 

А нормально можно написать чего гделать, будто все чайники догнали решения проблемы перейдя по ссылки, если вы знаете что гделать при этот ошибки, распишите на форуме, все вам только благодарны будут!

Link to comment
Share on other sites


Ну написано же, что прав на запись нету.

index.php и admin/index.php дайте права на запись, после инсилляции vqmod верните обратно в 444 или 644

Link to comment
Share on other sites


Ну написано же, что прав на запись нету.

index.php и admin/index.php дайте права на запись, после инсилляции vqmod верните обратно в 444 или 644

index.php я нашел, а вот ггде admin/index.php я хз  :( 

Link to comment
Share on other sites


  • 3 months later...

Ну написано же, что прав на запись нету.

index.php и admin/index.php дайте права на запись, после инсилляции vqmod верните обратно в 444 или 644

дал права 777 опотому чтоим файлам, резульит не изменился, пишет Administrator index.php not writeable, какие ещё способы есть?

Link to comment
Share on other sites


  • 2 weeks later...

дал права 777 опотому чтоим файлам, резульит не изменился, пишет Administrator index.php not writeable, какие ещё способы есть?

если папка admin переименована, нужно ее переименовать обратно в admin.

у меня тоже не усинавливалось, после переименовывания все всило как надо.

Link to comment
Share on other sites


если была переименована папка админ нужно в пакете vqmod в папке instal в файле index.php поменять все admin на ваш вариант названия этот папки,,,, это для авто усиновки, липотому что для ручной в файле vqmod/pathReplaces.php
 сгделать ик

<?php

/**
*  File for path replacements in xml paths. Examples:
*
*  $replaces[] = array('~^admin\b~', 'admin123'); // This replaces the admin folder name for use when admin folder's renamed
*  $replaces[] = array('~\btheme/default\b~', 'theme/my-theme-name'); // Theme name replace to apply mods to your theme
*
*  Place your replaces between the START and END lines below
**/


// START REPLACES //
$replaces[] = array('~^admin\b~', 'ваш вариант названия папки');
// END REPLACES //
Link to comment
Share on other sites


  • 2 weeks later...

Если пишет, что нет прав на запись, то зайдите не под рутом. а под пользователем, и под ним измените права на папки и файлы.

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.