Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0

gap loi PHP Fatal error:  [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0

1 vài thư viện open source cần những thư viện khác để chạy được lỗi thiếu thứ thư viện như sau rất hay gặp

Site error: the file E:\xampp2\htdocs\myproject\magento\www.hasbys.com\app\code\local\AdolMedia\AM\Helper\Data.php requires the ionCube PHP Loader ioncube_loader_win_5.5.dll to be installed by the website operator. If you are the website operator please use the ionCube Loader Wizard to assist with installation.

 

Khi gặp thì ta làm gì : đây là 1 bài viết mình đã làm theo và thành công các bạn có thể thử

 

1.  Download ionCube Loader zip or exe installer from the ionCube website:  http://www.ioncube.com/loaders.php  To get the correct ionCube Loader download you will need to look at your PHP Server phpinfo() information (see Example XAMPP Phpinfo information below).  Download the appropriate zip/exe file installer based on your phpinfo Compiler and Thread safety information that you will find in phpinfo.

Note:  Thread Safety enabled means thread-safe.  Thread Safety disabled means Non-TS/non thread-safe.

Note:  To create a phpinfo file to view your phpinfo.  Create a php file called phpinfo.php and add the PHP phpinfo(); function in that file and open the file in your Browser.  Example:  http://localhost/phpinfo.php.

2.  Install/unzip the ioncube loader to \xampp\php (or whatever xampp directory/folder name you have created).  You should end up with this folder \xampp\php\ioncube\ after installing the exe or if you want you can just unzip the files and then manually create this folder and copy all the files into this folder.

3.  Edit your php.ini file here – \php\php.ini (or if you have your php.ini file in another location then edit that php.ini file). Add this zend_extension directive shown below in your php.ini file and stop and restart your Apache Server.

Important Note:  This zend_extension directive above MUST come before any other zend_extension directives in your php.ini file. At the time this tutorial was created (3-20-2013) the correct ioncube_loader extension for XAMPP is the one shown below. XAMPP is using PHP5.4.x in the version that is currently installed on my system.  The ionCube Loader version should match your PHP Server version.  5.4 => 5.4

Troubleshooting Note:  If you run into problems. Copy the \xampp\php\ioncube\loader-wizard.php file to the root of any of your XAMPP websites.

Example XAMPP websites:  localhost/loader-wizard.php, example.local/loader-wizard.php, example.dev/loader-wizard.php and launch this file in your Browser.  Example:  http://localhost/loader-wizard.php.  This will start the ionCube Loader troubleshooting wizard, which will tell you exactly what is wrong.

 

Cụ thể : chạy phpinfo()

– tìm kiếm từ khoá Compiler

– tìm kiếm từ khoá Thread safety

-> dựa vào 2 thông tin trên tìm đúng thư viện ở trang chủ ionCube;

-download giải nén để vào thư mục xampp/php

– sửa file php.ini thêm dòng sau vào cuối

Chú ý chỉ có 1 dòng zend_extension trong file php.ini

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">