Base64 is Not Defined in Magento 2.3

In Magento 2.3 Admin Theme Configuration Tab is Continous Loading or Favicon or Logo File is Not Uploading.

How to Solve :
This Magento Bug is Overcome BY change Design.config.xml

Go to In Magento root Directory then vendor/magento/module-theme/view/adminhtml/ui_component/design_config_form.xml

Original Code :
Line 57

        <field name="head_shortcut_icon" formElement="fileUploader">
                <settings>
                    <notice translate="true">Allowed file types: ico, png, gif, jpg, jpeg, apng. Not all browsers support all these formats!</notice>
                    <label translate="true">Favicon Icon</label>
                    <componentType>fileUploader</componentType>
                </settings>

Line 154

<field name="header_logo_src" formElement="fileUploader">
                <settings>
                    <notice translate="true">Allowed file types: png, gif, jpg, jpeg.</notice>
                    <label translate="true">Logo Image</label>
                    <componentType>fileUploader</componentType>
                </settings>

Resolved Code :
line 57

        <field name="head_shortcut_icon" formElement="imageUploader">
                <settings>
                    <notice translate="true">Allowed file types: ico, png, gif, jpg, jpeg, apng. Not all browsers support all these formats!</notice>
                    <label translate="true">Favicon Icon</label>
                    <componentType>fileUploader</componentType>
                </settings>

Line 154

<field name="header_logo_src" formElement="imageUploader">
                <settings>
                    <notice translate="true">Allowed file types: png, gif, jpg, jpeg.</notice>
                    <label translate="true">Logo Image</label>
                    <componentType>fileUploader</componentType>
                </settings>

Replace New Code with old one, then Refresh cache.

Enjoy Your Development.
Pratik Panchal.

MAGENTO 2.3.0 Theme Configuration Issue

In Magento 2.3 Admin Theme Configuration Tab is Continous Loading or Favicon or Logo File is Not Uploading.

How to Solve :
This Magento Bug is Overcome BY change Design.config.xml

Go to In Magento root Directory then vendor/magento/module-theme/view/adminhtml/ui_component/design_config_form.xml

Original Code :
Line 57

        <field name="head_shortcut_icon" formElement="fileUploader">
                <settings>
                    <notice translate="true">Allowed file types: ico, png, gif, jpg, jpeg, apng. Not all browsers support all these formats!</notice>
                    <label translate="true">Favicon Icon</label>
                    <componentType>fileUploader</componentType>
                </settings>

Line 154

<field name="header_logo_src" formElement="fileUploader">
                <settings>
                    <notice translate="true">Allowed file types: png, gif, jpg, jpeg.</notice>
                    <label translate="true">Logo Image</label>
                    <componentType>fileUploader</componentType>
                </settings>

Resolved Code :
line 57

        <field name="head_shortcut_icon" formElement="imageUploader">
                <settings>
                    <notice translate="true">Allowed file types: ico, png, gif, jpg, jpeg, apng. Not all browsers support all these formats!</notice>
                    <label translate="true">Favicon Icon</label>
                    <componentType>fileUploader</componentType>
                </settings>

Line 154

<field name="header_logo_src" formElement="imageUploader">
                <settings>
                    <notice translate="true">Allowed file types: png, gif, jpg, jpeg.</notice>
                    <label translate="true">Logo Image</label>
                    <componentType>fileUploader</componentType>
                </settings>

Replace New Code with old one, then Refresh cache.

Enjoy Your Development.
Pratik Panchal.

PHP for beginners – Chapter 5

Welcome Back, Now we are going to learn Chapter 5 from PHP for beginners.

In this chapter, we will start coding in PHP. 🙂

We will start from “Hello world” example.

Open any editor. To choose editor – check our post for it. PHP for beginners – Chapter 2

Create a new file test.php

Write following code :

<?php

echo “Hello world!”;

?>

Save this file.

To run this file. first you have to start apache server. I hope you have read our article on this. PHP for beginners – Chapter 3

Start apache server. Place this file into htdocs folder. after starting your apache server.

Open your browser and type http://localhost/test.php

you will see output “Hello world”.

Now, we will see some more example for loops. Suppose we want to print 1 to 10 numbers.

<?php

for($i = 1; $i<=10;$i++) {

echo $i.”<br />”;

}

?>

This output will be :

1

2

3

4

5

6

7

8

9

10

You can learn more about php operators, loops, functions, strings and all from w3schools.com 

I hope this article will help you to start coding in php.

Magento 2.3.0 Localhost (Frontend are Blank)

Frontend is Blank

All Template File is Not loading

After installing Magento 2.3 on localhost, some-time Magento all Template file is not loading, due to that Frontend id blank.

For debugging set developer mode in Magento. Then you got error Require-js.phtml is not defined or valid.

How to Solve it.

Open Magento\vendor\magento\framework\View\Element\Template\File\Validator.php File and edit Line no 138.
Old Code :

$realPath = $this->fileDriver->getRealPath($path);

New Code :

$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));

Replace New Code with old one, then Refresh cache.

Enjoy Your Development.
Pratik Panchal.