Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9025083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:11:03+00:00 2026-06-16T06:11:03+00:00

I’m trying to override a phtml file within Magento’s admin area. Specifically, the file

  • 0

I’m trying to override a phtml file within Magento’s admin area. Specifically, the file I’m trying to override is: app/design/adminhtml/default/default/template/catalog/form/renderer/fieldset/element.phtml

In app/code/local/CompanyName/Website/etc/config.xml, I have:

<rewrite>
    <catalog_form_renderer_fieldset_element>CompanyName_Website_Block_Adminhtml_Catalog_Form_Renderer_Fieldset_Element</catalog_form_renderer_fieldset_element>
</rewrite>

The overriding block PHP file I have placed into app/code/local/CompanyName/Website/Block/Adminhtml/Catalog/Form/Renderer/Fieldset/Element.php. This file contains:

<?php

class CompanyName_Website_Block_Adminhtml_Catalog_Form_Renderer_Fieldset_Element extends Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element
{
    public function _construct()
    {
        parent::_construct();

        $this->setTemplate('catalog/form/renderer/fieldset/element.phtml');
    }
}

Finally, the overriding template file is at app/design/frontend/enterprise/CompanyName/template/catalog/form/renderer/fieldset/element.phtml and contains the actual template I’m overriding.

I get a white screen and in the log there’s this error: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 227543041 bytes) in /var/www/html/gold/lib/Varien/Object.php on line 569

Any thoughts? Am I extending the right class? Files placed correctly? Etc. There are other <rewrite> blocks inside the same config.xml file which work just fine so I must be making a mistake!

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T06:11:05+00:00Added an answer on June 16, 2026 at 6:11 am

    This is odd for a couple of reasons.

    It seems that you are merely interested in changing the template of this block. Why not just override its default template ‘widget/form/renderer/fieldset/element.phtml’?

    Are you sure you don’t have something like print_r($someObject->getData()); somewhere in your constructor or template?

    Further Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element::_construct() merely sets the template file, so probably no reason to call parent::_construct().

    Have you set some error_log()’s around in your constructor and template file to make sure they are being called? What is the full path to that template? Namely is it something like /app/design/adminhtml/default/default…? or /app/design/adminhtml/company/…? If the later, I assume you have the suitable config in place to allow for adminhtml template override?

    What is going on in line 569 of /lib/Varien/Object.php? (mine must be a different version because that line is in a comment and its around stuff that doesn’t seem relevant)


    EDIT:
    To override an adminhtml template. Add this to the < config > node in /app/etc/local.xml

    <stores>
        <admin>
            <design>
                <package>
                    <name>default</name>
                </package>
                <theme>
                    <default>companyname</default>
                </theme>
            </design>
        </admin>
    </stores>
    

    Now make a folder in /app/design/adminhtml/default/ named ‘companyname’ and put ‘template’, ‘layout’ etc. folders inside it as you would any theme. e.g. /app/design/adminhtml/default/companyname/template/widget/form/renderer/fieldset/element.phtml for your case.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to render a haml file in a javascript response like so:
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
Specifically, suppose I start with the string string =hello \'i am \' me And
I want use html5's new tag to play a wav file (currently only supported
In my XML file chapters tag has more chapter tag.i need to display chapters

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.