Prestashop broken after module PayPal installed - paypal

I installed PayPal module on my Prestashop site with version 1.5, after that I received this error if I try to contact my web site:
Warning: require(/web/htdocs/www.safarino.it/home/modules/paypal/backward_compatibility/backward.php): failed to open stream: No such file or directory in /web/htdocs/www.safarino.it/home/modules/paypal/paypal.php on line 127 Warning: require(/web/htdocs/www.safarino.it/home/modules/paypal/backward_compatibility/backward.php): failed to open stream: No such file or directory in /web/htdocs/www.safarino.it/home/modules/paypal/paypal.php on line 127 Fatal error: require(): Failed opening required '/web/htdocs/www.safarino.it/home/modules/paypal/backward_compatibility/backward.php' (include_path='.:/php5.6/lib/php/') in /web/htdocs/www.safarino.it/home/modules/paypal/paypal.php on line 127
How can I fixed them ?
I cannot remove this module because also web panel is broken

Rename your module folder in FTP from "paypal" to something else like "paypal.bak",
this way module will not be loaded at runtime and you'll get access again to your backoffice.
That said, I am not sure Paypal module is still compatible with Prestashop 1.5.
Consider upgrading Prestashop to 1.7 version (or at least 1.6) since 1.5 is over 6 years old and you will have other major issues other than Paypal sooner or later..

Related

There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'ios-arm64'

I was using VS Enterprise 17.3 preview 1 but my trial was expiring so I download and installed VS Community 17.3 preview 1. I open my MAUI project and build and I get this error;
There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'maccatalyst-x64
I assume I must've missed something in the installation so I go back but all the relevant components are installed
I double check with the Enterprise installation and they match. I then go back to opening the project in VS Enterprise and now I get the same error there too!?
I've tried deleting bin/obj folders cleaning and rebuilding;
I've tried adding this to the .csproj
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
I've tried changing the TargetFrameworks from this:
<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks>
To this (and a few other combinations):
<TargetFrameworks>net6.0-android;</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks>
So I'm now stuck unable to build :( help pls
Turns out I had an error in a blazor file that the compiler wasn't referencing. The 'no runtime pack' error was a red herring and unrelated to the actual error.

Magento 2.3.5 fresh installtion using composer results in error

I am trying to install Magento 2.3.5 using composer.
muk#muk:/var/www/html$ composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.3.5 magento23
Creating a "magento/project-community-edition" project at "./magento23"
Installing magento/project-community-edition (2.3.5-p1)
- Installing magento/project-community-edition (2.3.5-p1): Loading from cache
Created project in /var/www/html/magento23
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 463 installs, 0 updates, 0 removals
- Installing magento/magento-composer-installer (0.1.13): Loading from cache
- Installing laminas/laminas-dependency-plugin (1.0.3): Loading from cache
Plugin installation failed (include(/var/www/html/magento23/vendor/laminas/laminas-dependency-plugin/src/DependencyRewriterPlugin.php): failed to open stream: No such file or directory), rolling back
- Removing laminas/laminas-dependency-plugin (1.0.3)
[ErrorException]
include(/var/www/html/magento23/vendor/laminas/laminas-dependency-plugin/src/DependencyRewriterPlugin.php): failed to open stream: No such file or directory
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]
I am getting following error.
Plugin installation failed (include(/var/www/html/magento23/vendor/laminas/laminas-dependency-plugin/src/DependencyRewriterPlugin.php): failed to open stream: No such file or directory), rolling back
- Removing laminas/laminas-dependency-plugin (1.0.3)
My Composer version
muk#muk:/var/www/html$ composer --version
Composer version 1.10.5 2020-04-10 11:44:22
I am using VirtualBox with Shared folder.
How can I fix it?
Note: To fix it I stopped using shared folder. Now I keep the entire code in the VM and do not use shared folder. For file synching I am using mutagen.
if anyone runs into this issue, it looks to be a problem with virtualBox and shared folders. when unzipping files, they are not immediately available in the environment.
the solution is by rkamp and is also available here:
https://stackoverflow.com/a/66413857/1470145
in short, one needs to override unzip to add a brief delay after unzipping.
I thought I had the same issue, but turned out it was something else.
The upgrade went OK for me, for a sandbox/clean 2.3.4 install, and a client project running 2.3.4.
A few things:
This could possibly be an issue with your cache, try to clear your composer laminas cache (~/.composer/cache/files/laminas usually)
Although it would complain about that, you've possibly got unmet platform requirements (php version, etc.)
Try clearing your entire composer cache (~/.composer)
Double-check the repository URL (should it be 2.3.5 or 2.3.5-p1?)
Hope that helps

Can not run Matlab multiple version due to License Manager Error

I am trying to install matlab,and everything went fine ,and was installed until i tried running it.I keep getting the following error:
License checkout failed.
License Manager Error -114
This release of MATLAB requires a License Manager update and a new License File from the License
License Path:[...]C:\Users\..\AppData\Roaming\Mathworks\MATLAB\R2014_a_licenses\license.dat;C:\Program Files\MATLAB\R2014a\licenses\[name if pc]a.lic
Licensing error:-114,582.
Does anyone know why do i getthis error and what can i do to fix it ?

Prestashop PHP Fatal error: Uncaught Error: Class 'Tools'

Having this error on latest prestashop version:
PHP Fatal error: Uncaught Error: Class 'Tools' not found in /home/domain_name/config/config.inc.php:86
thrown in /home/domain_name/config/config.inc.php on line 86
Prestashop version is 1.7.1.2.
I tried to download this version again and replaced config/folder.
This didnt work.
Have no clue what to do
First, you have to install the Prestashop 1.7.1.2 by giving permission 0755 to folder. Then try to replace the config folder.
Note: Make sure that you are replaced the folder from Prestashop 1.7.x.x not from Prestashop 1.6 or 1.5.
Try to delete /var/cache (for 1.7)
And/or check please:
File owner and permissions,
Is there classes/Tools.php?
Replace all files with the same version.

Mongodb Error on running phpunit test

I tried to run mongdodb's driver test using phpunit as stated at http://www.php.net/manual/en/mongo.testing.php but it seems to have a problem with a MongoInt32Test.php filew.
# phpunit tests/mongosuite.php
Warning: require_once(MongoInt32Test.php): failed to open stream: No such file or directory in C:\Documents and Settings\owner\Desktop\mongo-php-driver\tests\MongoSuite.php on line 4
Fatal error: require_once(): Failed opening required 'MongoInt32Test.php' (include_path='.;\programming_tools\xampp-portable\php\PEAR') in C:\Documents and Settings\owner\Desktop\mongo-php-driver\tests\MongoSuite.php on line 4
I am using a php_mongo-1.3.1-5.4-vc9.dll and running mongodb 2.0.8 in windows xp. Anybody knows how to fix this? I can't find MongoInt32Test.php anywhere.
The PHPUnit tests in the extension are legacy tests and are no longer supported. I created a ticket, PHP-695, to remind us to remove mention of them from the documentation. All extension tests are phpt files, and instructions for executing them are documented in the GitHub repository.