PHP Help!

A General Discussion forum for cars and other topics, and a great place to introduce yourself if you are new to NICO!
User avatar
Greenblurr93
Posts: 115
Joined: Fri Mar 20, 2009 4:34 am
Location: The Sun

Post

I'm building an e-commerce store using Magento (Don't judge) have a theme I want to apply, but whenever i install the theme it breaks 'System => Configuration' in my admin panel. It returns this error:

"Fatal error: Class 'Mage_Custommenu_Helper_Data' not found in /home/perf480/public_html/app/Mage.php on line 546"

Do any of you know enough about PHP/Magento to help me get this fixed?

Thanks in advance
James


User avatar
Dattebayo
Posts: 33288
Joined: Sun Aug 25, 2002 10:04 am
Car: 2004 Nissan Frontier Desert Runner
Location: NE DC

Post


User avatar
Greenblurr93
Posts: 115
Joined: Fri Mar 20, 2009 4:34 am
Location: The Sun

Post

Thanks for the link. Unfortunately without knowing much PHP at all all i can tell you is my config file looks nothing like that, so it's hard to say if that's the root cause

User avatar
Dattebayo
Posts: 33288
Joined: Sun Aug 25, 2002 10:04 am
Car: 2004 Nissan Frontier Desert Runner
Location: NE DC

Post

Maybe your config file was made for PHP/HTML but not for magento?

User avatar
Greenblurr93
Posts: 115
Joined: Fri Mar 20, 2009 4:34 am
Location: The Sun

Post

The theme was built for the version of Magento I am using. I've spent the last 5 days trying to figure this out. :cry:

User avatar
Dattebayo
Posts: 33288
Joined: Sun Aug 25, 2002 10:04 am
Car: 2004 Nissan Frontier Desert Runner
Location: NE DC

Post

I say join that site and post up your config file, profit.

Or you could post it up here somewhere and we could run though it to see whats up?

User avatar
Greenblurr93
Posts: 115
Joined: Fri Mar 20, 2009 4:34 am
Location: The Sun

Post

Code: Select all

<?xml version="1.0"?>
<!--
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to [email protected] so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    Mage
 * @package     Mage_Core
 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
-->
<config>
    <global>
        <install>
            <date/>
        </install>
        <resources>
            <default_setup>
                <connection>
                    <host>localhost</host>
                    <username/>
                    <password/>
                    <dbname>magento</dbname>
                    <model>mysql4</model>
                    <initStatements>SET NAMES utf8</initStatements>
                    <type>pdo_mysql</type>
                    <active>0</active>
                </connection>
            </default_setup>
            <default_write>
                <connection>
                    <use>default_setup</use>
                </connection>
            </default_write>
            <default_read>
                <connection>
                    <use>default_setup</use>
                </connection>
            </default_read>
            <core_setup>
                <setup>
                    <module>Mage_Core</module>
                </setup>
                <connection>
                    <use>default_setup</use>
                </connection>
            </core_setup>
            <core_write>
                <connection>
                    <use>default_write</use>
                </connection>
            </core_write>
            <core_read>
                <connection>
                    <use>default_read</use>
                </connection>
            </core_read>
        </resources>
        <resource>
            <connection>
                <types>
                    <pdo_mysql>
                        <adapter>Varien_Db_Adapter_Pdo_Mysql</adapter>
                        <class>Mage_Core_Model_Resource_Type_Db_Pdo_Mysql</class>
                        <compatibleMode>1</compatibleMode>
                    </pdo_mysql>
                </types>
            </connection>
        </resource>
        <models>
            <varien>
                <class>Varien</class>
            </varien>
            <core>
                <class>Mage_Core_Model</class>
                <resourceModel>core_resource</resourceModel>
            </core>
            <core_resource>
                <class>Mage_Core_Model_Resource</class>
                <deprecatedNode>core_mysql4</deprecatedNode>
                <entities>
                    <config_data>
                        <table>core_config_data</table>
                    </config_data>
                    <website>
                        <table>core_website</table>
                    </website>
                    <store>
                        <table>core_store</table>
                    </store>
                    <resource>
                        <table>core_resource</table>
                    </resource>
                    <cache>
                        <table>core_cache</table>
                    </cache>
                    <cache_tag>
                        <table>core_cache_tag</table>
                    </cache_tag>
                    <cache_option>
                        <table>core_cache_option</table>
                    </cache_option>
                </entities>
            </core_resource>
        </models>
    </global>
    <default>
        <system>
            <filesystem>
                <base>{{root_dir}}</base>
                <app>{{root_dir}}/app</app>
                <code>{{app_dir}}/code</code>
                <design>{{app_dir}}/design</design>
                <locale>{{app_dir}}/locale</locale>
                <etc>{{app_dir}}/etc</etc>
                <media>{{root_dir}}/media</media>
                <upload>{{root_dir}}/media/upload</upload>
                <skin>{{root_dir}}/skin</skin>
                <var>{{var_dir}}</var>
                <cache>{{var_dir}}/cache</cache>
                <session>{{var_dir}}/session</session>
                <tmp>{{var_dir}}/tmp</tmp>
                <pear>{{var_dir}}/pear</pear>
                <export>{{var_dir}}/export</export>
            </filesystem>
        </system>
        <general>
            <locale>
                <code>en_US</code>
                <timezone>America/Los_Angeles</timezone>
            </locale>
        </general>
    </default>
    <varien>
        <class>Varien</class>
    </varien>
</config>

User avatar
Dattebayo
Posts: 33288
Joined: Sun Aug 25, 2002 10:04 am
Car: 2004 Nissan Frontier Desert Runner
Location: NE DC

Post

I say just follow the instructions on that site to the letter and you should be fine. Extrapolate what you don't know from the sources they give you and go with it broseph.

You should have a file called data.php that has instructions in it and that's where you need to add the first bit of code they show in you in the first part of the first answer. Then add the next bit to your config.php file near the "helpers" header and it should work.


Return to “General Chat”