Opencart vqmod error Cannot redeclare modification() - opencart2.x

I have opencart Version 2.0.3.1 and installed vqmod-2.5.1-opencart.
I was installing a extension by extension installer by upload the zip file of extension.
I got the error:
"Fatal error: Cannot redeclare modification() (previously declared in
/home/username/public_html/mydomain.com/vqmod/vqcache/vq2-system_startup.php:49)
in /home/username/public_html/mydomain.com/system/startup.php on line
65"
And I couldn't finish my installer. Anyone had this problem and fixed it?

It is happening because your new module is trying to modify a file which is already modified by some other module.
In other words, this new module of your's is conflicting with some existing module n your store. Contact new module's developer to help you install this module. He will make changes accordingly.

Related

npm script is unable to locate an existent module

I am trying to execute a ReactJS application on my Windows 10 system using npm.
On running the execution script, it is giving me a compilation error that states:
Module not found: Can't resolve '../assets_new/fonts/lato_bold.woff' in '\src\assets_new\scss'
The file lato_bold.woff does exist in the given path, yet the script isn't able to locate it.
Can someone pls let me know how could this be resolved?
From this message:
Can't resolve '../assets_new/fonts/lato_bold.woff' in '\src\assets_new\scss'
It seems that you are trying to fetch lato_bold.woff from fonts folder in assests_new but you are searching in scss folder of assests_new. Try changing it to fonts folder.

Issues with changing locale in react-admin: language package "implicitly has an 'any' type"

Im trying to follow this official guide on how to do internationalization in react-admin. I install the language pack using npm install aor-language-swedish, and change from aor to ra in index.js of aor-language-swedish in order to make it work it react-admin instead of admin on REST (I have also tried the English pack whcih is natively supported in react-admin, but I get the same error described below).
I then try to do
import swedishMessages from "aor-language-swedish";
in my App.js but upon hovering the import, i get the error:
Could not find a declaration file for module 'aor-language-swedish'.
'c:/Users/ssm/Documents/Visual Studio Code/adminui/node_modules/aor-
language-swedish/index.js' implicitly has an 'any' type.
Try `npm install #types/aor-language-swedish` if it exists or add a new
declaration (.d.ts) file containing `declare module 'aor-language-
swedish';
What could be causing this error? I have looked around the internet, but to no avail.
If you're getting this error it is probably because you're using TypeScript, have you tried to run npm install --save-dev #types/aor-language-swedish ?
If this doesn't exist you will have to manually add a typing file, you can follow the following tutorial in order to do so:
https://medium.com/#chris_72272/migrating-to-typescript-write-a-declaration-file-for-a-third-party-npm-module-b1f75808ed2
It turns out that this problem was not in fact a problem. Ignoring it seems to work, and remember to change the root key in index.js of the package to ra instead of aor if you are using an older react-admin language module (like Swedish). However, it would be interesting to know why this warning is shown, as I am not using TypeScript. Might it be an extension that is causing this warning?

unable to resolve external module typescript

I'm trying to build a project, but I keep getting compiler errors which say
Unable to resolve external module and Module cannot be aliased to a non-module type.
I have header file which contains all the typing reference path, but even when I try to reference the path in the same file, it still doesn't resolve the problem.
I ran into this error when I shouldn't have due to a bug with TypeScript 1.0.0, but was able to resolve it by upgrading to 1.0.1. Try doing that. If you still get the error, it's probably a bug in your code.

Cannot run servicestack bundler

I was trying to upgrade our installation of servicestack.bundler to version 1.1.22 but the new version won't work on Windows. I tried to download the nuget package into a new solution in Visual Studio but get the same error.
The error we get is
{ [Error: Cannot find module './to-css-visitor.js'] code: 'MODULE_NOT_FOUND' }
When I look in the node_modules folder and then the subfolders for Less there is no to-css-visitor.js file there. I cannot see the file in the source code on GitHub either. The source seems to look for the file in this folder:
node_modules/less/lib/less
Should the file be installed separately or is it missing from the source? Is there a better version than 1.1.20 to get instead?
Version 1.1.27 appears to have rectified the issue.

Drush can't update : Cannot redeclare system_help

I am trying to use drush to update my drupal core but in some cases (not all) I get
PHP Fatal error: Cannot redeclare system_help() (previously declared in /mysite/modules/system/system.module:46) in /mysite/sites/all/modules/drupal-6.22/modules/system/system.module on line 105
Drush command terminated abnormally due to an unrecoverable error.
Any idea on how to solve this?
Regards.
I had a similar issue, checked and there was inside the core module folder another module folder like:
www/module
www/module/module
Fixed the issue by reinstalling from scratch that drupal build and also upgraded my version of drush.
I had this same problem and it turns out I (as the system admin) had installed drush globally. The developer had installed it as a system module inside of sites/all/modules.
I removed the sites/all/modules/drush for the site and then was able to drush up as normal.

Resources