cancel
Showing results for 
Search instead for 
Did you mean: 

Magento connect manager giving me an http 500 error - cause is line 56

Magento connect manager giving me an http 500 error - cause is line 56

Hi,

 

I am trying to connect to my Magento Connect Manager to install an extension but when I login it says this message

Fatal error: Class 'Maged_Connect' not found in /home/mysitename/public_html/downloader/Maged/Model/Connect.php on line 56

 

Here is a large decent amount of code which includes line 56, does anyone know why this is happening? I could REALLY use some help.

 

include_once "Maged/Connect.php";

/**
 * Class for initialize Mage_Connect lib
 *
 * @category   Mage
 * @package    Mage_Connect
 * @copyright  Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */

class Maged_Model_Connect extends Maged_Model
{

    /**
     * Constructor
     */
    protected function _construct()
    {
        parent::_construct();
    }

    /**
     * Retrive object of Maged_Connect
     *
* return Maged_Connect THIS IS LINE 56 */ public function connect() { return Maged_Connect::getInstance(); } /** * Install All Magento * * @param boolean $force */ public function installAll($force=false, $chanName='') { $options = array('install_all'=>true); if ($force) { $this->connect()->cleanSconfig(); $options['force'] = 1; } $packages = array( 'Mage_All_Latest', ); $connectConfig = $this->connect()->getConfig(); $ftp = $connectConfig->remote_config; if (!empty($ftp)) { $options['ftp'] = $ftp; } $params = array(); $uri = $this->controller()->channelConfig()->getRootChannelUri(); $this->controller()->channelConfig()->setCommandOptions($this->controller()->session(), $options); $connectConfig->root_channel = $chanName; foreach ($packages as $package) { $params[] = $uri; $params[] = $package; } $this->connect()->runHtmlConsole(array('command'=>'install', 'options'=>$options, 'params'=>$params)); } /** * Prepare to install package * * @param string $id * @return array */ public function prepareToInstall($id) {
2 REPLIES 2

Re: Magento connect manager giving me an http 500 error - cause is line 56

The folder Maged should not be in the root. It goes on the downloader folder.

Download new magento 1.9.x and copy

/var/www/html/magento1/downloader/MagedConnect.php

file put here

/home/mysitename/public_html/downloader/Maged/Connect.php

It will help you out.

OpenSource Expert | OpenSource Technologies | www.opensourcetechnologies.com
Magento plugins released: http://www.opensourcetechnologies.com/product/product-category/magento-extensions

Re: Magento connect manager giving me an http 500 error - cause is line 56

Hi,

 

I have not tried it because I am worried something may break / happen when I upgrade to a newer magento version. I would love to go to the newest one but I think it would interfere with my theme.