Fórum OpenCart Brasil

Por um e-commerce livre, confiável e profissional

Suporte geral sobre problemas técnicos para OpenCart v2.x.
#79755
Você está usando vqmod?
Dá uma olhada nesta solução:
No arquivo /vqmod/vqmod.php
Substitua:
Código: Selecionar todos
private function _checkMatch($modFilePath, $checkFilePath) {
 $modFilePath = str_replace('\\', '/', $modFilePath);
 $checkFilePath = str_replace('\\', '/', $checkFilePath);

 $modFilePath = preg_replace('/([^*]+)/e', 'preg_quote("$1", "~")', $modFilePath);
 $modFilePath = str_replace('*', '[^/]*', $modFilePath);
 $return = (bool) preg_match('~^' . $modFilePath . '$~', $checkFilePath);
 return $return;

 }
Por
Código: Selecionar todos
private function _checkMatch($modFilePath, $checkFilePath) {
               $modFilePath = str_replace('\\', '/', $modFilePath);
               $checkFilePath = str_replace('\\', '/', $checkFilePath);
               $modFilePath = preg_replace_callback('/([^*]+)/', create_function('$matches','return preg_quote("$matches[0]", "~");'), $modFilePath);
               $modFilePath = str_replace('*', '[^/]*', $modFilePath);
               $return = (bool) preg_match('~^' . $modFilePath . '$~', $checkFilePath);
               return $return;
       }
Fonte: https://working-out.info/opencart-vqmod ... eg_replace
#79794
Legal Denilson, por favor renomeie o título desse post marcando que foi resolvido!

Gente preciso de ajuda urgente. Na migraç&a[…]

Caro @reds , muito obrigado pela resposta.

PHP 8+ incompatibilidade

Toda tradução para a versão 3[…]

Ola @alex3257 Se você precisa apenas ver […]