Category: PHP

  • Call to undefined function get_magic_quotes_gpc()

    Call to undefined function get_magic_quotes_gpc()

    get_magic_quotes_gpc function gets the current configuration setting of magic_quotes_gpc magic_quotes_gpc function is used to set the magic_quotes state for GPC (Get/Post/Cookie) operations. When magic_quotes are on, all ‘ (single-quote), ” (double quote), \ (backslash), and NULL’s are escaped with a backslash automatically. This feature(magic_quotes_gpc) has been DEPRECATED as of PHP 5.3.0 and REMOVED as of…

  • Codeigniter 4 – How to remove public/index.php from URL?

    Codeigniter 4 – How to remove public/index.php from URL?

    I have seen many blog posts and forum discussions answers this question with a quick fix by coping the index.php and .htaccess to the root level and change the “$pathsPath” variable. This will definitely remove the index.php from URLs. However, Codeigniter 4 use this folder structure for security reasons. The “public” folder holds the browser-accessible…

  • How to fix Magento connect “500 Internal Server Error”

    How to fix Magento connect “500 Internal Server Error”

    “500 Internal Server Error” In most occasions, file and folder permissions cause this “500 Internal Server Error” issue on Magento. To solve this issue, just change the folder permissions as below: 1. Change the following folder permissions to 755 – app/etc– var– media 2. And change the following file’s permission to 644 – index.php –…

  • How to solve magento2 permission issues

    How to solve magento2 permission issues

    After installing Magento 2.x, sometimes frontend and admin side js, CSS, and images can not load properly. This problem occurs because of file permission issues. Though Magento 2 recommends setting ownership of all files & folders to the web server group, sometimes this is not possible due to some reasons. For example on shared hosting,…

  • Move Magento from one server to another

    Move Magento from one server to another

    1. First of all take Back up your files. ( Go to your test site admin backend and refresh Cache by System > Cache Management. Then download and save the whole Magento shop root directory via File Manager or FTP tools ) 2. Export the Magento Database ( Enter your control panel “phpmyadmin” database area…

  • Remove index.php from Magento urls

    Remove index.php from Magento urls

    Remove index.php from Magento In this article, we are going to see how to remove the index.php from the magneto URL on both frontend and backend. For example: http://example.com/index.php/admin/ to http://example.com/admin/ Before you start make sure that the Apache rewrite module is enabled on your server or contact your hosting provider to enable this feature,…

  • How to disable direct access to joomla’s xml and ini files

    To disable the direct access to xml and ini files, just add the following codes to your server root htaccess file: <FilesMatch “.(ini|xml)$”> order allow,deny deny from all </FilesMatch>  

  • How to solve tinymce virus scanner issue: PUA.HTML.Infected.WebPage-1

    Some virus programs detect js/tiny_mce/plugins/paste/js/pasteword.js as Infected file, to solve this issue, open the file and replace this line (8 th line) el.innerHTML = ‘<iframe id=”iframe” src=”javascript:\’\’;” frameBorder=”0″ style=”border: 1px solid gray”></iframe>’; With the following one: el.innerHTML = ‘<‘ + ‘iframe id=”iframe” src=”javascript:\’\’;” frameBorder=”0″ style=”border: 1px solid gray”></iframe>’;  

  • How to show category name in woocommerce products page

    <?php global $post; $terms = get_the_terms( $post->ID, ‘product_cat’ ); foreach ($terms as $term) { //$product_cat_id = $term->term_id; break; } ?> <h2 class=”page_title”><?php echo $term->name; ?></h2>