Magento Tutorial

  1. Composer 2, which some of your plugins seem to be incompatible with

    I tried to install an extension from the Magento market place but I got an incompatibility error...

     

    Installing dependencies from lock file (including require-dev)

    Verifying lock file contents can be installed on the current platform.

    Your lock file does not contain a compatible set of packages. Please run composer update.

     

      Problem 1

        - laminas/laminas-dependency-plugin is locked to version 1.0.3 and an update of this package was not requested.

        - laminas/laminas-dependency-plugin 1.0.3 requires composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint.

      Problem 2

        - magento/magento-composer-installer

    Read more »
  2. Magento 2 Allowed Memory exhausted error when compile code

    I have error when i add module..

    Please re-run Magento compile command

    so i run below command but also display error that below when run command from root,

    php magento setup:di:compile

     

    Read more »
  3. How to Configure Robots.txt in Magento 2

    As you know, configuring robot.txt is important to any website that is working on a site’s SEO. Particularly, when you configure the sitemapto allow search engines to index your store, it is necessary to give web crawlers the instructions in the robot.txt file to avoid indexing the disallowed sites. The robot.txt file, that resides in the root of your Magento installation, is directive that search engines such as Google, Yahoo, Bing can recognize and track easily. In this post, I will introduce the guides to configure the robot.txt file so that it works well with your site.

    Following steps to Configure robots.txt in Magento 2

    • On the Admin panel, click Stores. In the Settings section, select Configuration
    Read more »
  4. An error has happened during application run

    The topic today is one of the popular errors you will meet. As if the error message shows “An error has happened during application run. See exception log for details” in Magento 2 when you have uploaded Magento CE latest version and want to install it on your server, so what should you do? Here is the right solution for you.

    How to resolve: “An error has happened during application run. See exception log for details”

    Please open the .htaccess from the root and comment out the first line:

    SetEnv MAGE_MODE developer
    Read more »
  5. How To Add Banner Ads To Ionic Apps Using AdMob Pro Plugin

    In this post I will show how you can add banner ads to your Ionic apps. I will be doing this on a new app but you can do it to your existing app as well. I have also written a post on adding banner ads to Ionic 2 apps, so if you are looking for Ionic 2 apps You can check that post out as well.

     

    Step 1)

    We will first start by creating a new Ionic project by issuing the following command in the command prompt

     
    Read more »
  6. Error: EACCES, permission denied Ionic Cordova IOS

    The error you have received is from NPM (since the Cordova CLI is installed via NPM). This is a tricky issue where using NPM with sudo, and then not using sudo will result in weird permission issues.

     

    Solution:

     

    sudo chown -R $USER /usr/local/

    Read more »
  7. Execution failed app:processDebugResources Android Studio

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':CordovaLib:processDebugResources'.
    > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/arulmanickam/adt-bundle-linux-x86-20131030/sdk/build-tools/23.0.2/aapt'' finished with non-zero exit value 127

     

     

    Solution :

    For me it was that I forgot to install the 32bit dependencies:

     

    sudo apt-get install -y lib32gcc1 libc6-i386 lib32z1 lib32stdc++6

    sudo apt-get install -y lib32ncurses5 lib32gomp1 lib32z1-dev lib32bz2-dev

     

     

    Read more »
  8. Failed to find 'ANDROID_HOME' environment variable

    i have this error when i am trying to build

    [Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually.
    Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.]

     

    Solution

     

    You have permission errors. My guess is that you tried to run the script as root rather than sudo. When running the script you have to run it as your user account using sudo.

     

    change owner permission all files & folder to your current login user .

    • Your android sdk
    • Your ionic or cordova project files

    dont run as admin or run using sudo

    Read more »
  9. Laravel 5.1 PHP DOMXPath() class not found

    I'm using PHP's built-in DOMXPath() class to do some simple web-scrapping. However, it works on my 4.2 site, but not my 5.1 (both are on same installation of PHP).

    Here's the error:

    Class 'App\Http\Controllers\admin\DOMXPath' not found

     $list1 =newDOMXPath();

     

    In Laravel 5.1 you must prefix the class name with the global namespace prefix '\'.

    $list1 =new \DOMXPath();
    Read more »
  10. Laravel 5.1 PHP DOMDocument() class not found

    I'm using PHP's built-in DOMDocument() class to do some simple web-scrapping. However, it works on my 4.2 site, but not my 5.1 (both are on same installation of PHP).

    Here's the error:

    Class 'App\Http\Controllers\admin\DOMDocument' not found

     $list1 =new DOMDocument();

     

    In Laravel 5.1 you must prefix the class name with the global namespace prefix '\'.

    $list1 =new \DOMDocument();
    Read more »
Page
Copyright © 2016 Samdoit Infotech. All rights reserved.