Coder Social home page Coder Social logo

vqmod's Introduction

vqmod

vQmod official repository

Please ensure you download from the RELEASES link above, or here - https://github.com/vqmod/vqmod/releases The official source code splits out platforms and will not run correctly if you don't use a proper release zip from the above link

vqmod's People

Contributors

chrisdempsey avatar gamesh avatar jay6390 avatar qphoria avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vqmod's Issues

530Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket

I am in the process of transferring my domain from www.kiwisouvenirs.com to www.kiwisouvenirs.co.nz

The new site is using the following environment:
MySQL server version 5.5.34
Your PHP version is 5.5.

OpenCart ยฉ 2009-2014 All Rights Reserved. Version 1.5.6.4
vqmod-2.5.1-Opencart

and these extensions:

opencart seo pack pro v5.21---for-OC-1.5.4-+
Total Import PRO-OC v151
Zone Shipping PlusOC v153.2

Navigating the site seems okay until I try to place an order or make changes in admin in which case I get messages similar to the following error message caused when making a change to the price of a product and attempting to save the change.

An issue with VQMOD or 'user error'?

530Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 530Warning: mysql_real_escape_string(): A link to the server could not be established in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 530Unknown: mysql_real_escape_string(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 531Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 531Warning: mysql_real_escape_string(): A link to the server could not be established in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 531Unknown: mysql_real_escape_string(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 582Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 582Warning: mysql_real_escape_string(): A link to the server could not be established in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 582Unknown: mysql_real_escape_string(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 583Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 583Warning: mysql_real_escape_string(): A link to the server could not be established in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 583Unknown: mysql_real_escape_string(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 584Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 584Warning: mysql_real_escape_string(): A link to the server could not be established in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 584Unknown: mysql_real_escape_string(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 585Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 585Warning: mysql_real_escape_string(): A link to the server could not be established in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 585Unknown: mysql_real_escape_string(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 586Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 586Warning: mysql_real_escape_string(): A link to the server could not be established in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 586Unknown: mysql_real_escape_string(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 591Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 591Warning: mysql_real_escape_string(): A link to the server could not be established in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 591Unknown: mysql_real_escape_string(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 592Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 592Warning: mysql_real_escape_string(): A link to the server could not be established in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 592Unknown: mysql_real_escape_string(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 593Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 593Warning: mysql_real_escape_string(): A link to the server could not be established in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 593Unknown: mysql_real_escape_string(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 632Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 632Warning: mysql_real_escape_string(): A link to the server could not be established in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 632Unknown: mysql_real_escape_string(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 633Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 633Warning: mysql_real_escape_string(): A link to the server could not be established in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 633Unknown: mysql_real_escape_string(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 636Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 636Warning: mysql_real_escape_string(): A link to the server could not be established in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 636Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/admin/index.php:85) in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-system_engine_controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/admin/index.php:85) in /var/www/vhosts/kiwisouvenirs.co.nz/httpdocs/vqmod/vqcache/vq2-system_engine_controller.php on line 29

cannot install vqmod on opencart

Well I follow the instructions of installing manually.
the front-end is okey,
but the admin-panel seems to be going wrong
it says:
"
Warning: mkdir() [function.mkdir]: No such file or directory in E:\HostingSpaces\pask\pask.com.tw\wwwroot\vqmod\vqmod.php on line 179
VQMod::dirCheck - CANNOT CREATE "vqmod/logs/" DIRECTORY
Warning: file_put_contents(vqmod/logs/0_Sun.log) [function.file-put-contents]: failed to open stream: No such file or directory in E:\HostingSpaces\pask\pask.com.tw\wwwroot\vqmod\vqmod.php on line 446
VQModLog::__destruct - LOG FILE "vqmod/logs/0_Sun.log" COULD NOT BE WRITTEN"

Php error

I created a site and its working properly in local server and when i hosted the site in server at that time getting bugs.
Deprecated: mysql_real_escape_string(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/u101698811/public_html/login.php on line 4

Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "No such file or directory") in /home/u101698811/public_html/login.php on line 4

Warning: mysql_real_escape_string(): A link to the server could not be established in /home/u101698811/public_html/login.php on line 4

Please help me to fix this bug.

Wrong replacements

I am getting wrong replacements and I would like to know if this is a bug.

This is the operation:

        <operation error="log">
            <search position="after"><![CDATA[
        'status',
      ]]></search>
            <add><![CDATA[
        'preorderable',
      ]]></add>
        </operation>

This is part of the source code, getting a successful match and replament:

      $fields = array(
        'manufacturer_id',
        'supplier_id',
        'delivery_status_id',
        'sold_out_status_id',
        'default_category_id',
        'categories',
        'product_groups',
        'status',
        'date_valid_from',
        'date_valid_to',
        'quantity',
        'quantity_unit_id',
        'purchase_price',
        'prices',
        'campaigns',
        'tax_class_id',
        'code',
        'sku',
        'upc',
        'taric',
        'dim_x',
        'dim_y',
        'dim_z',
        'dim_class',
        'weight',
        'weight_class',
        'name',
        'short_description',
        'description',
        'keywords',
        'head_title',
        'meta_description',
        'attributes',
        'images',
        'options',
        'options_stock',
      );

Here is another place in the sourcecode it should not match, but does:

          <tr>
            <td><strong><?php echo language::translate('title_status', 'Status'); ?></strong><br />
              <label><?php echo functions::form_draw_checkbox('status', '1', true); ?> <?php echo language::translate('title_published', 'Published'); ?></label></td>
          </tr>

This is the result:

      $fields = array(
        'manufacturer_id',
        'supplier_id',
        'delivery_status_id',
        'sold_out_status_id',
        'default_category_id',
        'categories',
        'product_groups',
        'status',

        'preorderable',

        'date_valid_from',
        'date_valid_to',
        'quantity',
        'quantity_unit_id',
        'purchase_price',
        'prices',
        'campaigns',
        'tax_class_id',
        'code',
        'sku',
        'upc',
        'taric',
        'dim_x',
        'dim_y',
        'dim_z',
        'dim_class',
        'weight',
        'weight_class',
        'name',
        'short_description',
        'description',
        'keywords',
        'head_title',
        'meta_description',
        'attributes',
        'images',
        'options',
        'options_stock',
      );
          <tr>
            <td><strong><?php echo language::translate('title_status', 'Status'); ?></strong><br />
              <label><?php echo functions::form_draw_checkbox('status', '1', true); ?> <?php echo language::translate('title_published', 'Published'); ?></label></td>

        'preorderable',

          </tr>

Does position after do partial inline matches?

Utdate quantity in checkout/cart fails

When I change the "quantity" in my testsite at http://autoglare.com/index.php?route=checkout/cart on the "Middle section 500 mm" product and click the "update" button I get a "Internal Server Error".

This is added to the error log-file:

2015-08-27 20:58:29 - PHP Notice: Undefined index: option in /home/mywebsite/public_html/vqmod/vqcache/vq2-system_library_cart.php on line 366
2015-08-27 20:58:29 - PHP Warning: Invalid argument supplied for foreach() in /home/mywebsite/public_html/vqmod/vqcache/vq2-system_library_cart.php on line 367

When I try the same with a simple test-product without "product options" it work fine. But as soon I add "options" to the test-product I get same problem.

also get this in the error log-file:
2015-08-27 21:19:18 - PHP Notice: Undefined variable: weight_multiplier in /home/mywebsite/public_html/vqmod/vqcache/vq2-system_library_cart.php on line 371

I hope you understand what I mean. And excuse my bad english, I'm from Norway :-)

vqmod fails without issuing any warning

I use an svn repo to version my opencart website. I don't keep the vqcache/* and mods.cache files under versioning because they would constantly conflict with local versions. The last time I did a fresh checkout I first changed the permissions of the whole vqmod folder and then created the mods.cache file and then changed its permissions. Vqmod then stopped working without giving any log error whatsoever. It took me the best part of a hour to realise that the if statement in line 245 of the vqmod.php was leading to the "return" which prevented vqmod from working.
What I did was probably not good practice (since I don't really need to change permissions for the whole vqmod folder), but nevertheless I think that vqmod should either issue a warning or write something in the logfile when the mods.cache file should not be empty but it is.

No errors, no logs, successful install

I'm not sure if this is the correct place for more support-related questions, so close if not appropriate...

I have no problems with vqmod on our own hosting, but we have some demo sites that run on Hostway.

My problem with both an older vqmod version and the latest is that while the install completes successfully (I can see the edits to /index.php and /admin/index.php), I don't see any edits being applied. The vqcache directory is empty as is the logs directory. I've tried with default perms (755, which works for things like opencart's own cache and image dirs) and with overly permissive (777) perms for vqcache and logs directories. I'm very confident all perms are correct at this point after going over things for a few hours and comparing to a working install.

Error display/logging is enabled in opencart, and not a single line logged/displayed.

Hostway does not seem to provide an actual apache error log, just an access log, but nothing of note there when fetching pages.

So my question is then how to debug when no errors are being logged?

Problem with .php file on vqmod

Hello ther,
i've installed vqmod on my opencart site following your steps but when i try to access to my domain i see an error like this :

Fatal error: Cannot redeclare Loader::__get() in /home/thepeach/public_html/vqmod/vqcache/vq2-system_engine_loader.php on line 22

How can i risolve this?

Advanced search by searching twice

I am faced with a problem where I need to search for a line of code which is too common.

Say I have this code and need to convert it into an array_merge:

$this['data'][] = array(
    'firstname'      => $query->row['firstname'],
    'lastname'       => $query->row['lastname'],
    'company'        => $query->row['company'],
    'company_id'     => $query->row['company_id']
);

I can't use offset to replace the whole thing because we have other extensions modifying this same array. We can't rely that company_id is always last either.

So need to perform 2 searches one for the top line and one for the last but this would be unreliable searching for: ');' as this is way too common.

So instead if there was a way to search twice or something similar:

  1. Search for: $this['data'][] = array( find the line number of this.
  2. Then start the next search from this line number, so finding the next occurrence of: );

[Feature Request] Multiline Search

I would like to push for a discussion of multiline search support.
Here is something I came up with that could be useful for starters:

function preg_replacement_quote($string) {
  return preg_replace('#(\$|\\\\)(?=\d)#', '\\\\\1', $string);
}

function modify_string($haystack, $search, $insert, $operation) {

  $search_regexp = preg_split("#\R+#", trim($search)); // Convert multiple lines to array
  foreach(array_keys($search_regexp) as $key) {
    $search_regexp[$key] = preg_quote(trim($search_regexp[$key]), '#'); // Turn line into regular expression
  }
  $search_regexp = "#(\\s+?" . implode('\\s+', $search_regexp) . "\\s+?)#"; // Glue

  switch($operation) {
    case 'prepend':
      return preg_replace($search_regexp, '$1' . $insert, $haystack);
    case 'replace':
      return preg_replace($search_regexp, $insert, $haystack);
    case 'append':
      return preg_replace($search_regexp, preg_replacement_quote($insert) . '$1', $haystack);
    default:
      trigger_error("Unknown operation ($operation)", E_USER_ERROR);
  }
}

The code should not be used for production. I had some troubles escaping $insert where PHP replaced both $1 and \1 with the first matched pair.

cannot install vqmod on opencart

Hello,
I have run a opencart-based site on my rental host called ARVIXE,
the server is microsoft windows server 2012.
I followed the installing steps and finally it showed the error message like this:
"Parse error: syntax error, unexpected '/' in E:\HostingSpaces\pask\pask.com.tw\wwwroot\vqmod\install\index.php on line 93"
can anyone tell me what's going wrong?
Thank you.

Cannot install vqmod on sub domain

I am having trouble installing vqmod with open cart 2.0

I have a sub domain called shop.something.com/

When I type in shop.something.com/vqmod/install just shows Index Of

How can I make it work with a sub domain.

About install vqmod on Opencart 2.0.2

I install the vQmod on Opencart 2.0.2, it show install done, but not works fine, although the folder 'vqcache' was created but no any file in the folder, I check the code and try to update follwo the instruction link : https://github.com/vqmod/vqmod/wiki/Installing-vQmod-on-OpenCart

edit the 'Edit your admin/index.php file', but can not find the "Application Classes" in the index.php

// Application Classes
require_once(DIR_SYSTEM . 'library/currency.php');
require_once(DIR_SYSTEM . 'library/user.php'));
require_once(DIR_SYSTEM . 'library/weight.php');
require_once(DIR_SYSTEM . 'library/length.php');

what I should do now ? thanks for your help !

add Production mode

there is a devMode which prevent's caching if enabled. There should be a production mode, if enabled it does not check if files where modified, just loads them if moded version already exists.

It's like APC when you turn off mtime, for better performance.

your install insctruction of Opencart is wrong and bad!

the link : https://github.com/vqmod/vqmod/wiki/Installing-vQmod-on-OpenCart

edit the 'Edit your admin/index.php file', but I can not find the "Application Classes" in the index.php

// Application Classes
require_once(DIR_SYSTEM . 'library/currency.php');
require_once(DIR_SYSTEM . 'library/user.php'));
require_once(DIR_SYSTEM . 'library/weight.php');
require_once(DIR_SYSTEM . 'library/length.php');

what I should do now ? thanks for your help !

Search Several Times

I want to search and insert for several times and not only once. Like

<search limit="2" position="after" >

limit == maximum possible replacements

Is it possible?

OpenCart hosted in a subdirectory

Should I expect vqmod not to work if my OpenCart shop's URL is mysite.tld/shop/ rather than mysite.tld/? Both your written and video instructions seem to assume the latter.

When I try to access mysite.tld/shop/vqmod/install, I get:

Forbidden

You don't have permission to access /shop/vqmod/install/ on this server.

(note the trailing "/").

Every directory and file you mention has 755 permissions (even though I'm unconvinced that setting the execute permission on PHP files is necessary, useful or safe).

OpenCart 1.5.6
PHP 5.2.17
CentOS 5.10

about error_vqcache_files_missing

about "override_engine" variable, your condition depend on this file "/engine/factory.php" exist or not,
in my opencart 2.0.1, this file not exist, so "override_engine" value is false.

at code last, near "check if vqcache files from vqmod_opencart.xml have been generated" block,
when I clear, these files auto created.
vq2-admin_controller_common_login.php
vq2-system_modification_system_engine_action.php
vq2-system_modification_system_engine_loader.php
vq2-system_modification_system_library_config.php
vq2-system_modification_system_library_language.php
vq2-system_startup.php

so you can see the problem... always at false block,
these files does not exist...
vq2-system_engine_loader.php
vq2-system_library_language.php

Is the distribution directories structure correct?

Hello,

I think there might be something unusual going on.

It all started with a number of vQModerator users reporting total destruction of their setups when upgrading to vQMod 2.5. I though it was just the usual stuff: bad hosting with wrong permissions, inexperienced users and so on.

But now I want to upgrade to 2.5 myself and I have noticed "peculiarities" I don't understand.

Downloading the zip and expanding it, it reveals an unusual "platform" directory. Under that directory is the install.php file. At the same time it's missing from the location I expect it to be: vqmod\install.

I have read the source code: the /platforms/opencart/install/index.php file requires /vqmod/install/ugrsr.class.php (as it has done in the past)... too bad index.php is under a totally different branch so it won't find it.

Basically, it's like the vqmod directory structure is split in two branches and I don't understand how the install can work with half installer under platform and the required files under vqmod and platform branch requires want to include vqmod/install stuff from their platform directory.

Could you please explain me how to make the whole thing work? I have a strong suspicion that if I merge everything under a vqmod folder and move the install.php in the vqmod/install directory things could work. But then, the vqmod xml is under platform as well whereas on my installation is under vqmod.

Install doco

OK, found your install doco by going to another site and following links from there.

Now, please: use the

code formatting

facility of Markdown on your instructions so I can have at least a little confidence in them. Finding that there's a newline missing in the very first line really knocks that confidence.

Sorry if I'm coming across as mean and angry, but really this is very very basic stuff.

.htaccess file preventing installation

Hey,

Just installed the released version 2.5.0 on a client's site and when I went to run the install I was getting permission errors for the vqmod directory.

I renamed the .htaccess file in the vqmod directory and was able to successfully install vqmod. I then renamed the file back to .htaccess to block anyone from accessing the files.

Cheers,
Joel.

opencart v2.5.0 or v2.5.1

When I upgrade this, the site becomes unusable.

Displays an error of
Parse error: syntax error, unexpected ';' in /home/sclubley/public_html/eternaluk/vqmod/vqcache/vq2-system_modification_system_engine_action.php on line 58

Can anyone advise?

Which xml file load first?

Hi,
I have a questions, inside opencart/vqmod/xml, I am many files. In some situation, 2 or more developer editing the same file. How I know which file is load first? vqmod is base on what to read the file?
is it alphabet?

Thanks for clarification

Replace behavior with index

Probably an edge case but just caught me out.

The below will not work as expected

    <file name="admin/controller/common/filemanager.php">
        <operation>
            <search position="replace" offset="5" index="1"><![CDATA[$allowed = array(]]></search>
            <add><![CDATA[
            $allowed = preg_replace('~\r?\n~', "\n", $this->config->get('config_file_ext_allowed'));
            $allowed = explode("\n", $allowed);
            ]]></add>
        </operation>
        <operation>
            <search position="replace" offset="6" index="2"><![CDATA[$allowed = array(]]></search>
            <add><![CDATA[
            $allowed = preg_replace('~\r?\n~', "\n", $this->config->get('config_file_mime_allowed'));
            $allowed = explode("\n", $allowed);
            ]]></add>
        </operation>
    </file>

I think its because when the second operation is applied the find now only exists once.

I had to change to the below to get this working. Note: I've had to change the index in the second find operation.

    <file name="admin/controller/common/filemanager.php">
        <operation>
            <search position="replace" offset="5" index="1"><![CDATA[$allowed = array(]]></search>
            <add><![CDATA[
            $allowed = preg_replace('~\r?\n~', "\n", $this->config->get('config_file_ext_allowed'));
            $allowed = explode("\n", $allowed);
            ]]></add>
        </operation>
        <operation>
            <search position="replace" offset="6" index="1"><![CDATA[$allowed = array(]]></search>
            <add><![CDATA[
            $allowed = preg_replace('~\r?\n~', "\n", $this->config->get('config_file_mime_allowed'));
            $allowed = explode("\n", $allowed);
            ]]></add>
        </operation>
    </file>

Might be worth noting in the wiki

cache fail

There seems to be an intermittent problem with the two cache files not staying in sync:

  • vqmod/checked.cache
  • vqmod/mods.cache

It happens sometimes if you update an xml file and the cache doesn't catch it for some reason and you end up with corrupted, partially modded or sometimes duplicated mods in the vqcache. Workaround is either resave xml (sometimes needs to be resaved 3 or 4 times before vqcached file is rendered correctly) or delete everything in the vqcache folder along with the two files mentioned above after revisions are made. This happens particularly often with servers I work on that have high traffic and many vqmods. Setting $_devMode to true helps but comes with it's own set of issues.

Are you aware of a setting configuration to eliminate the possibility of this happening? A real fix would be much appreciated.

Feature Request: Absolute Paths, Support xml/PHP & xml/XML Files

I was able to hack this together with the following changes:

//VQMod Changes
    $find       = array(
        'self::$_cwd . $path;',
        "'*.xml'",
        '$dom->load($modFile);'
    );
    $replace    = array(
        '$tmp = ( $path[0] !== "/" ) ? self::$_cwd . $path : $path ;',
        "'*.{xml,php}',GLOB_BRACE",
        '
            if( pathinfo($modFile,PATHINFO_EXTENSION) == "xml" ){
                $dom->load($modFile);
            }else{
                ob_start(); 
                include($modFile); 
                $dom->loadXML( ob_get_contents() ); 
                ob_end_clean();
            }
        '
    );

Would be nice to have these features without needing to hack it in tho!

Administrator index.php not writeable

Hi i'm using this installation locally on Ampps and it used to work fine but when i change the admin folder to "other" and try to reinstall the vqmod i got this error... i have use the pathreplaces.php acording the instructions and no luck... also i check the permisions 777 / 755 for the file index.php, change the path's on config's .php/ and no luck/ any idea ๐ŸŽฏ ?

vqmod open cart double extension front end display

Hi i deleted an extension xml and reuplaoded it why would the replied give me vqcache errors as if its redeclared and display double on the front end of open cart. Seems to me as if there are two instances of the extension. could i get some guidance on the vqmod open cart side. I know you cant help me specifically on the extension but i figure you could have some guidance on the vqmod side

Latest vqmod for OpenCart 2.0?

I feel that it is a complete mess where to get the latest vqmod for OpenCart 2.0. Can anyone show me where to get it?

Creating cache from VQMod

This isn't an issue with VQMod as such.

I'm working on a site that's hosting on Amazon's elastic cloud, so I can't use VQMod because the cloud doesn't like file_put_contents with the LOCK_EX flag. It's entirely possible that the cloud account could be configured to deal with that, but I don't have access to investigate/do anything about it.

The practical upshot of that is that I needed a way of "publishing" the VQmodded version of my OpenCart CE installation without including VQMod itself.

These hastily cobbled together scripts seem to do that (haven't run into any problems as yet), so I'm offering them up for discussion/disection/derision:

https://gist.github.com/jktoole/be9fdee2263b48194d07

I should stress the 'hasty/cobbled together' part. E.g. one of the scripts is a Windows batch file that could probably be incorporated into the PHP by someone with more time/patience.

If this is is an inappropriate forum then please close the issue and I'm sorry for raising it - I didn't want to post it on the regular OpenCart forums in case someone copied/pasted/ran it without thinking and hosed their installation, then asked me for support :)

If there's enough interest, would be happy to spend more time on fine-tuning the scripts, adding options or handing them over to someone more qualified.

Ogun

Changing Status on order error

issue7

I'm getting this error message when I try to change any order status. Also get the same error when trying to add a new order. I contacted Opencart and they think it has something to do with vqmod. Can anyone help?

Doco

What do you do with this zip file? How do you install it into OpenCart? How do you tell which version(s) of OpenCart it is compatible with?

Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in vQmod

I install vQmod on a working OpenCart 2.0.2.0 website and after installation I get the following error.
Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/buyindus/public_html/ocart22/vqmod/vqcache/vq2-system_modification_catalog_controller_common_header.php on line 131
Can you point me in the right direction.

Bulldog51

OpenCart with VQMOD

Hi, I'm using opencart for my ecommerce website and i was trying to install vqmod, however when i go to www.mydomain.com/vqmod/install to check whether vqmod is install successfully or not, it shows the error message as below:
WebsitePanel IIS Modules Error
AuthName directive not found.
File: C:\Domains\xxxx\vqmod.htaccess

May i know what is the solution for this issue? Thank you.

VQMOD works with custom folder

I've created a new folder on Opencart root directory called "POS". I've dozens of VQMOD .xml file that need to be work with the files with this POS folder. But unfortunately it is not working but it is working with admin, catalog, system etc folder.

Is there any way the vqmod works with the new folder called POS. Any suggestion will be helpful.

Thanks
[email protected]

Add XML Schema XSD file

Not only it allows validating the XML in IDE like Netbeans and similar, but it also supplies autocomplete functionality witch is very useful.
attribute-values-autocomplete
tags-autocomplete
Ofcourse xml files would need to be namespaced and linked to xsd for this to work.

<?xml version="1.0" encoding="UTF-8"?>
<modification 
    xmlns="https://github.com/vqmod/vqmod"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="https://github.com/vqmod/vqmod https://raw.github.com/vqmod/vqmod/vqmod.xsd">
</modification>

I'm currently working on a XSD file for vqmod. would you consider adding it into repository if i would send a pull request?

modify aleardy modified file

i need to modify a file that has already been modified by another XML. in that case, where should I apply my XML changes, on original file or the vq cache file??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.