Jump to content

Zend/loader/autoloader.php Fatal Error


seintitus

Recommended Posts

I am trying to install a script and it throws up the following error:

 

Warning: require_once(Zend/Loader/Autoloader.php) [function.require-once]: failed to open stream: No such file or directory in /home/tchesoen/public_html/afrilogistics.tk/autos/library/Zend/Application.php on line 80

Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader/Autoloader.php' (include_path='/home/tchesoen/public_html/afrilogistics.tk/autos/library:.:/usr/lib/php:/usr/local/lib/php') in /home/tchesoen/public_html/afrilogistics.tk/autos/library/Zend/Application.php on line 80

 

(Below I am including the contents of my index.php file for you to check where the error is in reffence to the line 80 stated above).

<?php
if(!function_exists('ioncube_license_properties')) {
	 die('<style type="text/css">
			<!--
			body {
				font-family: Arial, Helvetica, sans-serif;
				font-size: 14px;
				text-decoration: none;
				text-align: center;
			}
			div#container {
				margin-left: auto;
				margin-right: auto;
				width: 760px;
				text-align: left;
			}
			.boxerror {
				background-color: #FFE1E1;
				border: 1px solid #FF9393;
				font-family: "Courier New", Courier, monospace;
				width: 720px;
				padding: 5px;
			}
			-->
			</style>
			<div style="line-height:35px; border-top:3px solid #FFA6A6;border-bottom:3px solid #FFA6A6;background-color:#FFF4F4;color:#750000;font-family:Verdana, Arial, Helvetica, sans-serif;font-weight:bold;text-align:center;"><span style="font-size:18px;">ERROR:</span> Ioncube Loader is NOT installed at your server to run this application</div>
			<div id="container"> 
			  <p>This program file is encoded -- in order to decode and run it, your web server needs the Ioncube Loader to be installed. </p>
			
			  <p>Most web hosting servers are already configured to run the Ioncube Loader, however it seems that your server is not correctly set up and has a problem. Don\'t worry -- it can be easily fixed.</p>
			  <h2>What is the Ioncube Loader?</h2>
			  <p>The Ioncube Loader is a free, industry standard program that runs on your web server. It is used to decode files like this one that are encoded with the Ioncube PHP Encoder.</p>
			  <p>If you are a do-it-yourself person, you can run the <a href="http://www.ioncube.com/loader_installation.php">Ioncube Loader Diagnostic Utility</a> and try to fix the problem.</p>
			  <p>Otherwise, you should send your web hosting provider a link to this page and ask them to fix the problem. (It should take them about 10 seconds to fix it.)</p>
			
			  <h2>What if my hosting provider will not fix the problem?</h2>
			  <p>There are no technical or security  reasons to prevent the Ioncube Loader from running on your web server. If your web hosting provider can not (or will not)  fix the problem, then you should switch to a more competent hosting provider.</p><p></p><p></p>
			</div>
			<div style="line-height:35px; border-top:3px solid #FFA6A6;border-bottom:3px solid #FFA6A6;background-color:#FFF4F4;color:#750000;font-family:Verdana, Arial, Helvetica, sans-serif;font-weight:bold;text-align:center;"><span style="font-size:18px;"><a href="http://www.httpsdoc.com/How-to-Install-configure-ionCube-loader_19.html">Click here</a></span> to know how to Install or configure ionCube loader to your server</div>');
} 

define('DS', 				DIRECTORY_SEPARATOR);
define('PS', 				PATH_SEPARATOR);

 // Define base path obtainable throughout the whole application
    defined('BASE_PATH')
        || define('BASE_PATH', realpath(dirname(__FILE__)));
  
// Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/application'));

// Define application environment
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../library'),
    get_include_path(),
)));

//Application Library Path
define('LIBRARY_PATH', realpath(APPLICATION_PATH . '/../library') );

//Application Module Path
define('MODULE_PATH', realpath(dirname(__FILE__) . '/application/modules'));

//Application Session Path  
if(!is_dir(dirname(__FILE__) . '/_SESSION'))
{	
	if (!mkdir(dirname(__FILE__) . '/_SESSION', 0755, true)) 
	{
    	die('Failed to create folders "_SESSION" under' . realpath(dirname(__FILE__) . '/_SESSION'));
	}
}
define('SESSION_PATH', realpath(dirname(__FILE__) . '/_SESSION' ));

/** Zend_Application */
require_once 'Zend/Application.php';  

// Create application, bootstrap, and run
$application = new Zend_Application(
    APPLICATION_ENV, 
    APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap()
            ->run();
Link to comment
Share on other sites

The error is in Application.php, not in the file you posted. Assuming the file Autoloader.php doesn't exist in your application's Zend folder, I won't be surprised if the issue is the script needing a newer version of ioncube. The version of ioncube on Stevie is ancient (and PHP is as well, 5.3.8).

 

I'd recommend finding a program that doesn't require ioncube. An open source program will be infinitely more flexible if you ever want to expand/customize it (ioncube's main use is to prevent doing this), and will not have dependencies like this either. If you really need to run this one, I'd suggest waiting for Tommy to be released (whenever that may be, likely a few months). That server will have up to date software.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...