We tried to install Watermark default module (from github) on Prestashop 1.6.1.23. After trying to install we have some fatal error:
[PrestaShop] Fatal error in module file... ...watermark.php
Call to undefined method Watermark::trans()
How can we resolve this problem?
Module is default, theme default also. PHP version is 7.
Best regards
Related
I tried to run a python program on the PyQt5 framework but it's giving me .dll file errors.
I've installed tools to fix it but it's still giving me this error :
OSError: cannot load library 'libxcb.dll': error 0x7e
I have already installed all these tools:
**Uniconvertor-2.0rc5-win64_headless.msi
GTK+ for Windows Runtime Environment Installer**
it always gives me this error "OSError: cannot load library 'libxcb.dll': error 0x7e".
Is there any other way to fix this error?
Following 14.0.0 version upgrade for "#rollup/plugin-node-resolve" plugin, when running my build I always get this error message :
[!] (plugin node-resolve) Error: Error running plugin hook resolveId for node-resolve, expected a function hook.
Error: Error running plugin hook resolveId for node-resolve, expected a function hook.
at error (/Users/***/Documents/GitHub/poke/node_modules/rollup/dist/shared/rollup.js:198:30)
at throwInvalidHookError (/Users/***/Documents/GitHub/poke/node_modules/rollup/dist/shared/rollup.js:22635:12)
at /Users/***/Documents/GitHub/poke/node_modules/rollup/dist/shared/rollup.js:22776:24
Was there any breaking change that I should be aware ?
I have to migrate my prestashop 1.7 to another sever because the OVH crash.
but i have blank page in back and front office.
No error display with debug mode.
PHP version : 7.1 (apache server with plesk)
any idea ?
warning :
mod_fcgid: stderr: PHP Warning: include(): Failed opening '/var/www/vhosts/xxxxx.be/httpdocs/vendor/composer/../psr/log/Psr/Log/LogLevel.php' for inclusion (include_path='/var/www/vhosts/xxxxx.be/httpdocs/tools/htmlpurifier/standalone:/var/www/vhosts/xxxxx.be/httpdocs/vendor/pear/pear_exception:/var/www/vhosts/xxxxx.be/httpdocs/vendor/pear/console_getopt:/var/www/vhosts/xxxxx.be/httpdocs/vendor/pear/pear-core-minimal/src:/var/www/vhosts/xxxxx.be/httpdocs/vendor/pear/archive_tar:.:/opt/plesk/php/7.1/share/pear') in /var/www/vhosts/xxxxx.be/httpdocs/vendor/composer/ClassLoader.php on line 444
mod_fcgid: stderr: PHP Fatal error: Class 'Psr\Log\LogLevel' not found in /var/www/vhosts/xxxxx.be/httpdocs/vendor/symfony/symfony/src/Symfony/Component/Debug/Debug.php on line 56
mod_fcgid: stderr: PHP Warning: include(/var/www/vhosts/xxxxx.be/httpdocs/vendor/composer/../psr/log/Psr/Log/LogLevel.php): failed to open stream: No such file or directory in /var/www/vhosts/xxxxx.be/httpdocs/vendor/composer/ClassLoader.php on line 444
What version of Prestashop ?
The error is clear, a core Prestashop file is missing :
/vendor/psr/log/Psr/Log/LogLevel.php
You have to restore it by taking it from the ZIP of the same version.
My two cents: you are restoring on a backup where "log*" was excluded and this caused the files containing the word log not to be backed up... so check that everything else is intact!
I'm developing an Android Module for a Titanium app and I have to generate a Notification. Android SDK forces me to do a setSmallIcon() call to include a png asset as icon for the notification. I've put icon_notification.png asset in /platform/android/res/drawable folder of my module and (tryed to) got it in the code calling
TiRHelper.getResource("drawable.icon_notification")
but when I build module calling ant, the following error is raised:
[javac] Note: [KrollBindingGen] Running Kroll binding generator.
[javac] Note: [KrollBindingGen] No binding data found, creating new data file: org.appcelerator.titanium.bindings/connecthings.json
[javac] Note: [KrollBindingGen] Found binding for proxy Beacon
[javac] Note: [KrollBindingGen] Found binding for module Connect
[javac] Note: [KrollBindingGen] Generating JSON: file:/Users/***/Development/***/modules/android/***/android/build/generated/json/org/appcelerator/titanium/bindings/***.json
[javac] warning: The following options were not recognized by any processor: '[kroll.checkTiContext]'
[javac] /Users/***/Development/***/modules/android/***/android/src/***/***/***/***/ConnectModule.java:76: error: unreported exception ResourceNotFoundException; must be caught or declared to be thrown
[javac] .setSmallIcon(TiRHelper.getResource("drawable.icon_notification"))
[javac] ^
[javac] Note: /Users/***/Development/***/modules/android/***/android/src/***/***/ti/***/BeaconProxy.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 1 error
seems that raising a ResourceNotFoundException exception, builder doesn't find the assset
Have I placed the file in the wrong place?
The platform folder also has to sub-folder of android folder.The full directory is "android/platform/android/res/drawable/". You can also check if the resources are created in the build folder.
Documentation Link
Error posted is trowed during build step of the module.
In this step I think that resources are not already put in place, so, wrapping the TiRHelper method in a try...catch statement as written in the wiki suggested by #Saeed Sharman resolve the problem.
So, the working version is simply:
try {
TiRHelper.getResource("drawable.icon_notification");
catch (ResourceNotFoundException e) {
...
}
I want want to use Speechkit SDK in my app, since I found it recognize words better than the native tool did.
I found a Titanium module on GitHub but it is designed to work with Titanium SDK 3.1.3.GA . I am currently working with SDK 5.0.0.GA.
What am I supposed to do to import this module in my mobile app ? I updated the titanium.xcconfig file to reflect the version of my SDK. I also put my credentials into it and build the project. Then I compressed it and installed it via Help Menu > Install Mobile Module. I finally added it to the tiapp.xml file.
When I try to run the project, this is what I get :
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld Build/Intermediates/Hello5.build/Debug-iphoneos/Hello5.build/Objects-normal/arm64/Hello5 normal arm64
[ERROR] : Ld Build/Intermediates/Hello5.build/Debug-iphoneos/Hello5.build/Objects-normal/armv7/Hello5 normal armv7
[ERROR] : (2 failures)
TRACE | titanium exited with exit code 1
ERROR | Error: ti run exited with error code 1
at ChildProcess.<anonymous> (/Users/feeder/.appcelerator/install/5.0.1/package/node_modules/appc-cli-titanium/plugins/run.js:89:66)
at ChildProcess.emit (events.js:117:20)
at Process.ChildProcess._handle.onexit (child_process.js:820:12)
I tried to create a new module by hand and drag-and-drop files into it, and also tried to install globally vs project-specific, I can't come with an idea for making it work. Thank you in advance if you could share an idea ;)
I have the same error and looking the console using Trace appears "framework SpeechKit not found".
I've successfully resolved this error by packaging the module to your project directly selecting "Mobile App Project" given that Module.xcconfig sets "FRAMEWORK_SEARCH_PATHS" to find SpeechKit framework on "assets" folder from the project directly.