I have downloaded Magento version 2.4.4 with sample data from https://magento.com/tech-resources/download I was trying to install it on the Wamp server. But when I run the installation I get the error
Unable to apply data patch Magento\GroupedProductSampleData\Setup\Patch\Data\InstallGroupedProductSampleData for module Magento_GroupedProductSampleData. Original exce
ption message: Rolled back transaction has not been completed correctly.
I tried with versions 2.4.3 and 2.4.3-p2 all are showing the same error. But I was able to install the 2.4.3 version without sample data. I searched and found it is related to some error in the csv file. But none of the answers provided a solution. Please help.
Hi #Akhilesh in our case use magento 2.4.4 and this error was by a third module and when disable this, all magento run fine.
Your can edit vendor/magento/framework/DB/Adapter/Pdo/Mysql.php file, search rollback() method and in the "else" section add this line:
echo (new \Exception())->getTraceAsString();
This can help you to look where is the error, if is from a module or another.
Regards
Related
Hello i have installed Parse server and parse sdk for php on my Linux Centos Server.
Parse Dashboard: 1.3.3,
Server version: 4.3.0
I'm managing those db's using php code. This parser was installed by someone else. The thing is I'm not sure how to install LiveQuery for my server. I don't know if my version of server is good for this kind of operations. I found some solutions how to enable this feature, but there was something like "index.js" - in my file system it's app.js. Screen of file system
In app.js i added lines:
liveQuery: {
classNames: ["Test"] //List of classes to support for query subscritions
}
I've created class in my db named "Test", then i found solution i need to add
this line
liveQueryUrl: keyLiveQueryUrl, // Required if using LiveQuery
I don't really know how to get this key.
How can i check if LiveQuery works? It will be used by flutter code, but i'd like to check it first in PHP.
My problem has been solved in my other extended topic here.
I try to install m2e pro on magento 2.0.9 by uploading module to the app/code/.. and then i execute the command
magento setup:upgrade
just like it says in here: https://docs.m2epro.com/display/eBayMagento2/Installation
Everything seems fine, front-end is working,
however back-end page is blank and returns error
Class Magento\Framework\EntityManager\MetadataPool does not exist";i:1;s:10391:"#0 /vendor/magento/framework/ObjectManager/Definition/Runtime.php(44): Magento\Framework\Code\Reader\ClassReader->getConstructor('Ess\M2ePro\Mode...')
I have tried to clear var/cache and var/generation folders and nothing still get this error....
Try to run other command given in m2e document for static content and compilation.
PHP:
magento setup:static-content:deploy;
bin/magento setup:di:compile;
I hope it will fix out for you..
Iv recently been trying to upload my php application from xampp which i have installed on my home machine to a server. Now the code works perfectly on xampp at home and the mongodb driver works as expected, however after migrating it to the LAMP server, the f3 framework throws this error :
Fatal error: Class 'MongoDB' not found in /nfs/fs0/home/dhu/www/fatfree/lib/db/mongo.php on line 107
Internal Server Error
Fatal error: Class 'MongoDB' not found
In reference i looked up the line it is complaining about and its this one :
$this->db=new \MongoDB(new $class($dsn,$options?:array()),$dbname);
And after looking up solutions on stack and other websites they said to check the version of mongo etc installed so i look it up on the php side to see what was enabled and it returns :
PHP INFO ()
PHP Version 5.6.24-0+deb8u1
mongodb
mongodb support enabled
mongodb version 1.1.8
mongodb stability stable
libmongoc version 1.3.5
libbson version 1.3.5
So since mongo is both installed and enabled on the php server im unsure what exactly the issue is with line 107 in the fatfree framework, does anyone have any idea's? Any help would be appreciated.
So after no real solutions been found here im gonna update to see if i can get more help.
Update
Note the server settings can be found here:
http://lamp0.cs.stir.ac.uk/
and the error here:
http://lamp0.cs.stir.ac.uk/~dhu/
The line its referring too is:
$this->db=new \MongoDB(new $class($dsn,$options?:array()),$dbname);
Within the MONGODB library, mongo.php. After looking at various ways to set the DB up and trying to rewrite the setup code nothing seems to work....
Update 2
$manager = new MongoDB\Driver\Manager("mongodb://mydetails:27017");
If i removed the fatfree framework this line does not throw an error during setup which is surprising as i expected it to be unable to find MongoDB\Driver however it had no problem, its main problem seems simply to be that one line in the fatfree framework and im unsure why...
You need to add MongoDB as dependency in the composer.json file of your Fat-Free Framework.
Just add MongoDB to the require dependency list, if it is not there create one like below.
"require": {
"mongodb/mongodb": "^1.0"
},
Then run composer install again. Now you can reference MongoDB classes inside your code.
First install autoload class for mongodb in your project.Then try with below code
$client = new MongoDB\Client("mongodb://localhost:27017");
As the title says, I am trying to set up an old 1.4 Magento installation locally with MAMP.
Things i did so far:
Download entire website
Import Database
Change unsecure and secure base_url
Change database user information in local.xml
Delete everything inside the var folder
Set PHP version to 5.3
A fresh install of 1.4 Magento works fine on my system.
All I get is a Magento error screen saying "There has been an error processing your request"
The error messages generated to the var/report folder are exe files, and return something like
/Applications/MAMP/htdocs/sandbergdesign/var/report/624953303320: line 17: syntax error near unexpected token }'
/Applications/MAMP/htdocs/sandbergdesign/var/report/624953303320: line 17:#16 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default";}'
logout
When clicked
I got it up and running.
I decided to download a fresh Magento 1.9, and installed it using the OLD database, the one from the Magento 1.4 site.
I also had to truncate the following tables in the DB:
Truncate all log_ tables
Truncate report_event, report_compared_product_index, and report_viewed_product_index
After truncating I could complete the installation process, and can proceed to implement the old theme, test functionality, etc.
I attempted to upgrade from joomla 2.5.11 to 3.2.3 which is latest right now. First of all I checked and upgraded all extensions - CB, k2, kunena, xmap (I did not upgrade xmap as I got errors so I left it, little one not important) to latest by going extensions manager -> update tab. Then going components-> joomla-> update update to 3.2.3. The update finished but I got an error about remember.php and could not access admin panel.
Getting suggestions from Fatal error when updating joomla from 3.1.1 to 3.2.2 , I uploaded a joomla 3.2.3 package's remember.php file in /plugins/system/remember/ folder backing up previous file.
But I got another error -
Fatal error: Call to undefined method RuntimeException::get() in
/home/techhe97/public_html/libraries/joomla/error/error.php on line
797
So, can't access admin panel all the way.