Magento 2 m2e pro installation error - php

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..

Related

VS Code can not reach Symfony\Component and Symfony\Bundle

I am trying to create a simple symfony project.
I run this on console:
composer create-project symfony/skeleton myProjectName
php -S 127.0.0.1:8000 -t myProjectName/public
Project succesfully run at localhost:8000. However, when I begin to inspect the code, I realized VS Code editor is indicating "Undefined type" error in projectDirectory/src/Kernel.php file. Do you have any ideas why this happens and any suggestions towards solution?
I use PHP v7.4.32 and Symfony 5.4 for development. My helper extentions are PHP Intelephense v1.8.2 and PHP IntelliSense v1.0.11.
projectDirectory/src/Kernel.php
The Error
Since it runs succesfully on browser, I dubted that the classes exist somewhere but the VSCode could not solve the relative paths. Then, I tried a couple of extensions. Installation of PHP v1.22.11089 created by DEVSENSE and PHP Namespace Resolver v1.1.9 created by Mehedi Hassan has solved the problem.

Magento 2.4.4 sample data installation error

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

Cant view products under categories in magento 2.4.3

Im trying to upgrade our magento commerce site from 2.4.1 to 2.4.3 in a staging environment - Ive almost got it working but Ive found that when navigating through the category tree at the lowest level no products are being displayed just the message
We can't find products matching the selection.
Ive seen this before and tried all the usual suggestions
reindex
clear cache
flush cache
purge front page cache
With no luck. Searching for products and viewing results works fine.
Ive also tried solutions posted here
https://community.magento.com/t5/Magento-2-x-Technical-Issues/products-not-showing-in-category-on-frontend-Magento-2-but/td-p/143481
https://magento.stackexchange.com/questions/135814/products-are-not-showing-in-category-magento-2
https://digitalstartup.co.uk/t/products-not-showing-in-categories-but-are-there-in-the-database-and-backend/1838/11
This has lead me to find that there is an issue editing product attributtes in the admin section, I get a js error on load of the attributtes, the data loads but I cannot save them.
Uncaught TypeError: Cannot read property 'show' of undefined
at switchDefaultValueField ((index):1279)
at bindAttributeInputType ((index):1120)
at HTMLDocument.<anonymous> ((index):1389)
at fire (jquery.min.js:212)
at Object.add [as done] (jquery.min.js:215)
at jQuery.fn.init.jQuery.fn.ready (jquery.min.js:223)
at jQuery.fn.init (jquery.min.js:200)
at new jQuery.fn.init (jquery-migrate.min.js:27)
at jQuery (jquery.min.js:16)
at (index):1388
I have tried setting the attributes to non filterable and none searchable at SQL level but no luck.
This works fine in 2.4.1, and the only change is the upgrade
any ideas?
try these, test on each,
/usr/bin/php74 bin/magento c:f)
/usr/bin/php74 bin/magento catalog:images:resize
/usr/bin/php74 bin/magento indexer:reset
/usr/bin/php74 bin/magento indexer:reindex
/usr/bin/php74 bin/magento cache:clean full_page block_html
/usr/bin/php74 bin/magento setup:static-content:deploy -f
do you check elasticsearch ?
In my case, when i fix connection with elasticsearch server remotely, i solve this problem.

Laravel 5.0 breaks as soon as I try to composer update

I have Laravel 5.0.34 project that works perfectly fine, but recently I had to install another plugin and realized that as soon as I try to run
composer update
in my root directory, it gives the error
Script php artisan optimize handling the post-update-cmd event returned with an error
I have tried removing the post-update-cmd section of my composer.json, but all that does is removes the error from popping up on the command-line. It still gives an error when I try to display the project though.
I have also tried deleting storage/framework/compiled, but found that I don't have that file/directory
This person seemed to have the same issue, but none of their fixes worked for me
http://laravel.io/forum/03-25-2015-composer-update-throwing-error-script-php-artisan-optimize-handling-the-post-update-cmd-event-returned-with-an-error
Any help would be greatly appreciated!

Setting up Magento 1.4 locally, MAMP

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.

Categories