magento2.3.5 – export magento 2 database with different method

i used Ubuntu OS and now mysql is not work, when i export database using ssh command in local terminal,
i used this command for export DB :

mysqldump -u root -p fastestsample > fastestsample_bkp.sql

host : localhost
username : root
password : password not set

is there any other way to export database from phpmyadmin?
i used xampp in local system,

magento2.3.5 p2 – Fotorama Gallery JS Errors With Magepack JS Bundling Enabled

We are using Magepack on a Magento v2.3.5-p2 website for JS bundling. See below:

If we enable magepack JS bundling using the Luma or Blank theme it works fine without issue. However when we enable this using the clients implementation of porto theme it breaks the fotorama image gallery on the product pages. See error message that appears in the JS console below:

Uncaught TypeError: settings.$elementF.fotorama is not a function

When magepack JS bundling is disabled the image gallery works fine. It also works fine if the core Magento JS bundling is enabled. The issue is isolated to when magepack is enabled as far as we can tell.

Does anyone have any experience of this same issue when using Magepack JS bundling?
Does anyone know how to debug issues like this?
Is it something simple thing that we are missing like reordering the files in the magepack.config.js file?

magento2.3.5 – Shipping from Multiple Origins for Tax Calculation Purpose

We are shipping products on the same order from different countries, which has tax implications in EU (shipments within the destination country have to pay the local VAT, the others the German VAT).

I was thinking about to make shipping based on shipment origin. But the shipping origin can only be set for the full website.

Would multi stock inventory help here? Or doesn’t it help or is complete overkill here (we do not keep stock anyways, because everything is / can be produced on demand)

magento2.3.5 p1 – Magento Admin Panel Error While Saving any Product at Catalog

We are getting this error while trying to save a product at Catalog > Products

“A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later.”

We are running Magento ver. 2.3.5-p1

We did try:
php bin/magento indexer:reset
php bin/magento indexer:reindex
php bin/magento c:fl
php bin/magento cache:clean
php bin/magento cache:flush

Logout and Logged In again and problem still there.


magento2.3.5 – using customer session in block

I want to get customer id in block but the customer session returns null.

from controller, i could get customer id.

logger in block works well so the customer id is executed.


class Config extends MagentoFrameworkViewElementTemplate                                                                                                                                       
    public function __construct(
        MagentoFrameworkViewElementTemplateContext $context,
        MagentoCustomerModelSession $customerSession
    ) {
        $this->session = $customerSession;
        $this->logger = $logger;


    public function getCustomerId(): int
        $this->logger->debug('this log is ok');
        return $this->session->getCustomer()->getId(); // return null

from view,

this code returns 500 because the type hinting of getCustomerId() is :int and return null.

this->session->getCustomer returns null

this->session->isLoggedIn also returns null

i saw almost same, other question in stackexchange, they do not fit my ploblem.

like this Magento2 error on injecting customer session in block

ofcourse i did




magento2.3.5 p1 – getImageUrl() returning nothing in Magento 2.3.5 -p1 version

I want to get all categories name and image URL(to show image) to show on the storefront but when I am using function getImageUrl() and getImage() returns nothing. Why this is happening can anyone help me?.I am using Magento 2.3.5 -p1 version.
I am using the following code for block-

namespace DemoGetAllCategoriesBlock;
class DisplayAllCategory extends MagentoFrameworkViewElementTemplate {
    protected $_categoryHelper;
    protected $categoryFactory;
    protected $_catalogLayer;

    public function __construct(
        MagentoCatalogBlockProductContext $context,     
        MagentoCatalogHelperCategory $categoryHelper,        
        array $data = ()
    ) {
        $this->_categoryHelper = $categoryHelper;   

     * Retrieve current store level 2 category
     * @param bool|string $sorted (if true display collection sorted as name otherwise sorted as based on id asc)
     * @param bool $asCollection (if true display all category otherwise display second level category menu visible category for current store)
     * @param bool $toLoad

    public function getStoreCategories($sorted = false, $asCollection = false, $toLoad = true)
        return $this->_categoryHelper->getStoreCategories($sorted , $asCollection, $toLoad);

Phtml code-

    $categorys = $this->getStoreCategories(false,false,true);
    foreach($categorys as $category){
        echo $category->getName();
        echo $category->getId();
        echo $category->getImageUrl();
        echo $category->getUrl();


magento2.3.5 – Magento does not redirect to payment success page

I’m using Airpay Payment Gateway. I’m able to checkout and redirect to payment provider page. Money gets deducted. But

  1. After payment, it redirects to homepage instead of order success page and logs out of session. I need to login again
  2. When i go to orders section, it is showing payment pending

When i check the same with COD orders, it redirects to success page with order ID.

We have provided call back url to payment provider as

Is this a issue with the payment gateway provider end or do i need to change anything else in magento. We are using 2.3.5 version

magento2.3.5 p2 – M2.3 : Trying to access array offset on value of type bool running on PHP 7.4

While opening the admin page, getting below exception running on Magento 2.3.5-p2.

1 exception(s):
Exception #0 (Exception): Notice: Trying to access array offset on value of type bool in /var/www/html/mage235/vendor/magento/module-logging/Model/Processor.php on line 221

Exception #0 (Exception): Notice: Trying to access array offset on value of type bool in /var/www/html/mage235/vendor/magento/module-logging/Model/Processor.php on line 221
<pre>#1 MagentoLoggingModelProcessor->initAction() called at (vendor/magento/module-logging/App/Action/Plugin/Log.php:66)
#2 MagentoLoggingAppActionPluginLog->beforeDispatch() called at (vendor/magento/framework/Interception/Interceptor.php:121)

Refereed this one but its custom code so it un-related.

magento2.3.5 p2 – Magento 2 + memcache issue

I have problem login to backend when memcache is enabled. It doesn’t generate backend page new key? Looks it is always same… All works when memcache is disabled. How fix this issue?


Warning: session_regenerate_id(): Cannot regenerate session id - session is not active in /home/user/public_html/vendor/magento/framework/Session/SessionManager.php on line 531

env.php file

'session' => (
    'save' => 'memcached',
    'save_path' => 'tcp://localhost:11211'

(Also tested with ‘save_path’ => ‘127.0. 0.1:11211’)

Magento 2.3.5-2,
Centos 7,
PHP 7.3

magento2.3.5 p1 – Commerce Edition – Website Restrictions Enabled and robots.txt

Is it expected functionality that a website with restriction mode set to “Website Closed” will cause the router to exceed it’s 100 loop limit when trying to reach /robots.txt?

I’m seeing this routing error periodically in logs with regards to a specific site which is in “Website Closed” mode and the requested path being /robots.txt. I get that “Website Closed” should not allow any access; however, shouldn’t it still return a robots.txt of NOINDEX,NOFOLLOW (or just be blank)?