Magento Forum

   
Whitescreen after upgrading to 1.6
 
roywulmsdesign
Jr. Member
 
Total Posts:  29
Joined:  2011-04-13
 

Hi,

I’ve updated Magento via Magento Connect from 1.5 to 1.6 and got a whitescreen after i pressed the refresh button.

In first place, the front-end and back-end gave me this message:
“the server is temporarily unable to service your request due to maintenance downtime or capacity problems. please try again later.”

After clearing the cash by ftp and restarting the server, the front- and back-end are giving a whitescreen to.
I pasted ini_set(’display_errors’, 1); in the index page what brought me to this error:

Fatal error: Undefined class constant ‘XML_PATH_USE_CUSTOM_ADMIN_URL\’ in /var/www/vhosts/roywulmsdesign.nl/httpdocs/magento/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php on line 123

I’ll hope, somebody can help me!

 
Magento Community Magento Community
Magento Community
Magento Community
 
roywulmsdesign
Jr. Member
 
Total Posts:  29
Joined:  2011-04-13
 

Hmm, found a “solution” already.. but i don’t think this is a good one???

Pasted the class ‘XML_PATH_USE_CUSTOM_ADMIN_URL’ in Google and came to this page/file:
http://svn.magentocommerce.com/source/branches/1.6-trunk/app/code/core/Mage/Adminhtml/Helper/Data.php

Here, i saw that the class is defined at the top of that file:

const XML_PATH_ADMINHTML_ROUTER_FRONTNAME   'admin/routers/adminhtml/args/frontName';
    const 
XML_PATH_USE_CUSTOM_ADMIN_URL         'default/admin/url/use_custom';
    const 
XML_PATH_CUSTOM_ADMIN_URL             'default/admin/url/custom';

In the file on my server it wasn’t

How is this possible? Did i do something wrong?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Justin Atack
Member
 
Avatar
Total Posts:  42
Joined:  2009-01-03
Sydney, Australia
 

I had the same issue… not 100% sure what it was. Initially I was trying to do the upgrade via the command line with pear/mage. Afterward I got the same error so I downloaded the entire package via SVN and overwrote my magento directory. This was on an site that is not important so I didn;t care if it broke it badly, instead it fixed it.

In all my time working with magento the best way of upgrading magento has been via SSH with SVN, well worth learning how to do it.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Vini Preisner
Jr. Member
 
Total Posts:  2
Joined:  2010-03-17
 

In /app/code/core/Mage/Adminhtml/helper/Data.php replace:

class Mage_Adminhtml_Helper_Data extends Mage_Core_Helper_Abstract
{

    
protected $_pageHelpUrl;

by

class Mage_Adminhtml_Helper_Data extends Mage_Core_Helper_Abstract
{

    
const XML_PATH_ADMINHTML_ROUTER_FRONTNAME   'admin/routers/adminhtml/args/frontName';
    const 
XML_PATH_USE_CUSTOM_ADMIN_URL         'default/admin/url/use_custom';
    const 
XML_PATH_CUSTOM_ADMIN_URL             'default/admin/url/custom';

    protected 
$_pageHelpUrl;

It works for me!

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