Magento Forum

   
1.3.2.4 > 1.7.0.2 custom theme migration issue
 
deejaycomic
Jr. Member
 
Total Posts:  3
Joined:  2013-01-12
 

Hello Magento community,

To start, please go lightly as I am a rank amateur at Magento design and development and this is my first work assignment on this platform. I am following the “Designer’s Guide to Magento” as my guide for “do’s and don’ts” and directory structure.

I am currently tasked with copying the custom theme and layout from a client’s existing site that was built in 1.3.2.4 to a fresh install of 1.7.0.2. I was naively hoping that this would be as simple as copying the existing design packages from “/app/design/frontend” and “/skin/frontend” and pasting them into their respective places on the backend of the new site. Unfortunately, when I changed the System>Configuration>Design settings in the Admin Panel to match the existing site, I get this error:

Fatal error: Call to a member function toHtml() on a non-object in /home/xxxxxx/domains/xxxxxx.xxxxxx.net/public_html/2013/app/code/core/Mage/Core/Model/Layout.php on line 555

The code this error references is:

/**
     * Get all blocks marked for output
     *
     * @return string
     */
    public function getOutput()
    
{
        $out 
'';
        if (!empty(
$this->_output)) {
            
foreach ($this->_output as $callback{
                $out 
.= $this->getBlock($callback[0])->$callback[1]();
            
}
        }

        
return $out;
    
}

Specifically, Line 555 is:

$out .= $this->getBlock($callback[0])->$callback[1]();

I’m sure that the solution is painfully simple. I’m just hoping that making this big of an upgrade leap doesn’t require a full reworking of the existing custom theme. Any help is greatly appreciated. Thank you in advance!

 
Magento Community Magento Community
Magento Community
Magento Community
 
deejaycomic
Jr. Member
 
Total Posts:  3
Joined:  2013-01-12
 

Okay, I’ve solved this issue by replacing:

<block type="core/profiler" output="toHtml"/>

with:

<block type="core/profiler" output="toHtml" name="core_profiler"/>

and refreshing the cache in Layout building instructions.

Now I’m back to trying to get custom theme to present itself. Only shows default theme now. :(

Time to formulate a new question!

 
Magento Community Magento Community
Magento Community
Magento Community
 
deejaycomic
Jr. Member
 
Total Posts:  3
Joined:  2013-01-12
 

Problem solved! I’m sure I’ll be back in the near future though! grin

 
Magento Community Magento Community
Magento Community
Magento Community
 
kalenjordan
Sr. Member
 
Avatar
Total Posts:  218
Joined:  2011-10-31
Pasadena, CA
 

Wow!  A 1.3 => 1.7 upgrade as your first Magento task.  And seems like you pretty much figured it out on you’re own.  This probably puts you in the 99.9th percentile of new Magento developers. 

Congrats, you should go for the certification wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
daneger1
Jr. Member
 
Total Posts:  1
Joined:  2013-06-03
 

What exactly did you do to get it solved if I may Ask?

Thanks, Dan.

deejaycomic - 12 January 2013 12:50 PM

Problem solved! I’m sure I’ll be back in the near future though! grin

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top