cancel
Showing results for 
Search instead for 
Did you mean: 

PATCH Sites Magento

PATCH Sites Magento

Eu preciso de corrigir algum código que está afectado, para posteriormente continuar a instalar os patches.

 

Estou a usar esta ferramenta para listar os problemas https://github.com/rhoerr/supee-6788-toolbox 

 

A minha dúvida é o que tenho que fazer em concreto para resolver este ponto sensível de segurança? que código é que eu tenho que corrigir/Substituir? tenho que substituir nos ficheiros php?patch.png

 

O ficheiro log (fixSUPEE6788.log) dá-nos os erros atuais e sugere as alterações que devemos fazer?

 

em seguida envio código do log

 

Obrigado

 

1 REPLY 1

Re: PATCH Sites Magento

######## excerto do código do ficheiro fixSUPEE6788.log #####

<clnews>
                <use>admin</use>
                <args>
                    <module>CommerceLab_News</module>
                    <frontName>clnews</frontName>
                </args>
            </clnews>
2017-02-01T17:04:53+00:00 DEBUG (7): To be replaced with:
<adminhtml>
				<args>
					<modules>
						<clnews before="Mage_Adminhtml">CommerceLab_News_Adminhtml</clnews>
					</modules>
				</args>
			</adminhtml>
2017-02-01T17:04:53+00:00 DEBUG (7): Found affected module: GardenMedia_BagsterCode
2017-02-01T17:04:53+00:00 DEBUG (7): Found route tag 'bagstercode'. Original route XML:
<bagstercode>
                <use>admin</use>
                <args>
                    <module>GardenMedia_BagsterCode</module>
                    <frontName>bagstercode</frontName>
                </args>
            </bagstercode>
2017-02-01T17:04:53+00:00 DEBUG (7): To be replaced with:
<adminhtml>
				<args>
					<modules>
						<bagstercode before="Mage_Adminhtml">GardenMedia_BagsterCode_Adminhtml</bagstercode>
					</modules>
				</args>
			</adminhtml>
2017-02-01T17:04:53+00:00 DEBUG (7): Found affected module: Magestore_Bannerslider
2017-02-01T17:04:53+00:00 DEBUG (7): Found route tag 'bannerslideradmin'. Original route XML:
<bannerslideradmin>
                <use>admin</use>
                <args>
                    <module>Magestore_Bannerslider</module>
                    <frontName>bannerslideradmin</frontName>
                </args>
            </bannerslideradmin>
2017-02-01T17:04:53+00:00 DEBUG (7): To be replaced with:
<adminhtml>
				<args>
					<modules>
						<bannerslideradmin before="Mage_Adminhtml">Magestore_Bannerslider_Adminhtml</bannerslideradmin>
					</modules>
				</args>
			</adminhtml>
2017-02-01T17:04:53+00:00 DEBUG (7): Found affected module: GardenMedia_GmStorelocator
2017-02-01T17:04:53+00:00 DEBUG (7): Found route tag 'gmstorelocator'. Original route XML:
<gmstorelocator>
                <use>admin</use>
                <args>
                    <module>GardenMedia_GmStorelocator</module>
                    <frontName>gmstorelocator</frontName>
                </args>
            </gmstorelocator>
2017-02-01T17:04:53+00:00 DEBUG (7): To be replaced with:
<adminhtml>
				<args>
					<modules>
						<gmstorelocator before="Mage_Adminhtml">GardenMedia_GmStorelocator_Adminhtml</gmstorelocator>
					</modules>
				</args>
			</adminhtml>
2017-02-01T17:04:53+00:00 DEBUG (7): Found affected module: GardenMedia_GmNews
2017-02-01T17:04:53+00:00 DEBUG (7): Found route tag 'clnews'. Original route XML:
<clnews>
                <use>admin</use>
    			<args>
    				<modules>
    					<gardenmedia_news before="CommerceLab_News">GardenMedia_GmNews</gardenmedia_news>
    				</modules>
    			</args>
    		</clnews>
2017-02-01T17:04:53+00:00 DEBUG (7): To be replaced with:
<adminhtml>
				<args>
					<modules>
						<clnews before="Mage_Adminhtml">GardenMedia_GmNews_Adminhtml</clnews>
					</modules>
				</args>
			</adminhtml>
2017-02-01T17:04:53+00:00 DEBUG (7): Found affected module: Magestore_Magenotification
2017-02-01T17:04:53+00:00 DEBUG (7): Found route tag 'magenotification'. Original route XML:
<magenotification>
				<use>admin</use>
				<args>
					<module>Magestore_Magenotification</module>
					<frontName>magenotification</frontName>
				</args>
			</magenotification>
2017-02-01T17:04:53+00:00 DEBUG (7): To be replaced with:
<adminhtml>
				<args>
					<modules>
						<magenotification before="Mage_Adminhtml">Magestore_Magenotification_Adminhtml</magenotification>
					</modules>
				</args>
			</adminhtml>
2017-02-01T17:04:53+00:00 DEBUG (7): Found affected module: Rootinfo_Attribute
2017-02-01T17:04:53+00:00 DEBUG (7): Found route tag 'attribute'. Original route XML:
<attribute>
	    <use>admin</use>
		<args>
		  <module>Rootinfo_Attribute</module>
		  <frontName>admin_attribute</frontName>
		</args>
	  </attribute>
2017-02-01T17:04:53+00:00 DEBUG (7): To be replaced with:
<adminhtml>
				<args>
					<modules>
						<attribute before="Mage_Adminhtml">Rootinfo_Attribute_Adminhtml</attribute>
					</modules>
				</args>
			</adminhtml>
2017-02-01T17:04:53+00:00 DEBUG (7): ---- Moving controllers for bad routers to avoid conflicts --------
2017-02-01T17:04:53+00:00 DEBUG (7): ERROR: /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/GardenMedia/GmNews/controllers/Adminhtml does not exist! This module's admin routes must be corrected manually.
2017-02-01T17:04:53+00:00 DEBUG (7): Would move /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/GardenMedia/BagsterCode/controllers/Adminhtml to /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/GardenMedia/BagsterCode/controllers/Adminhtml/Bagstercode
2017-02-01T17:04:53+00:00 DEBUG (7): Would move /var/www/clients/client2/web4/web/shark/httpdocs/app/code/community/Magestore/Bannerslider/controllers/Adminhtml to /var/www/clients/client2/web4/web/shark/httpdocs/app/code/community/Magestore/Bannerslider/controllers/Adminhtml/Bannerslideradmin
2017-02-01T17:04:53+00:00 DEBUG (7): Would move /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/GardenMedia/GmStorelocator/controllers/Adminhtml to /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/GardenMedia/GmStorelocator/controllers/Adminhtml/Gmstorelocator
2017-02-01T17:04:53+00:00 DEBUG (7): Would move /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/Magestore/Magenotification/controllers/Adminhtml to /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/Magestore/Magenotification/controllers/Adminhtml/Magenotification
2017-02-01T17:04:53+00:00 DEBUG (7): Would move /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/Rootinfo/Attribute/controllers/Adminhtml to /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/Rootinfo/Attribute/controllers/Adminhtml/Attribute
2017-02-01T17:04:53+00:00 DEBUG (7): ---- Searching files for bad routes -------------------------------
2017-02-01T17:04:54+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/community/Magestore/Bannerslider/Block/Adminhtml/Addbutton.php
2017-02-01T17:04:54+00:00 DEBUG (7):   WAS:        $url = Mage::getSingleton('adminhtml/url')->getUrl('bannerslideradmin/adminhtml_banner/addin');
2017-02-01T17:04:54+00:00 DEBUG (7):   NOW:        $url = Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/bannerslideradmin_banner/addin');
2017-02-01T17:04:54+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/community/Magestore/Bannerslider/Block/Adminhtml/Renderer/Edit.php
2017-02-01T17:04:54+00:00 DEBUG (7):   WAS:			"window.open('".Mage::getSingleton('adminhtml/url')->getUrl('bannerslideradmin/adminhtml_banner/addin', array( 'sliderid' => $this->getRequest()->getParam('id'),'id' => $row->getId()))."','Gamekings','width=1024,height=650')",
2017-02-01T17:04:54+00:00 DEBUG (7):   NOW:			"window.open('".Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/bannerslideradmin_banner/addin', array( 'sliderid' => $this->getRequest()->getParam('id'),'id' => $row->getId()))."','Gamekings','width=1024,height=650')",
2017-02-01T17:04:54+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/community/Magestore/Bannerslider/controllers/Adminhtml/BannersliderController.php
2017-02-01T17:04:54+00:00 DEBUG (7):   WAS:class Magestore_Bannerslider_Adminhtml_BannersliderController extends Mage_Adminhtml_Controller_Action {
2017-02-01T17:04:54+00:00 DEBUG (7):   NOW:class Magestore_Bannerslider_Adminhtml_Bannerslideradmin_BannersliderController extends Mage_Adminhtml_Controller_Action {
2017-02-01T17:04:54+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/community/Magestore/Bannerslider/controllers/Adminhtml/BannerController.php
2017-02-01T17:04:54+00:00 DEBUG (7):   WAS:class Magestore_Bannerslider_Adminhtml_BannerController extends Mage_Adminhtml_Controller_Action {
2017-02-01T17:04:54+00:00 DEBUG (7):   NOW:class Magestore_Bannerslider_Adminhtml_Bannerslideradmin_BannerController extends Mage_Adminhtml_Controller_Action {
2017-02-01T17:04:54+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/community/Magestore/Bannerslider/controllers/Adminhtml/ReportController.php
2017-02-01T17:04:54+00:00 DEBUG (7):   WAS:class Magestore_Bannerslider_Adminhtml_ReportController extends Mage_Adminhtml_Controller_Action {
2017-02-01T17:04:54+00:00 DEBUG (7):   NOW:class Magestore_Bannerslider_Adminhtml_Bannerslideradmin_ReportController extends Mage_Adminhtml_Controller_Action {
2017-02-01T17:04:54+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/community/Magestore/Bannerslider/controllers/Adminhtml/StandardsliderController.php
2017-02-01T17:04:54+00:00 DEBUG (7):   WAS:class Magestore_Bannerslider_Adminhtml_StandardsliderController extends Mage_Adminhtml_Controller_Action
2017-02-01T17:04:54+00:00 DEBUG (7):   NOW:class Magestore_Bannerslider_Adminhtml_Bannerslideradmin_StandardsliderController extends Mage_Adminhtml_Controller_Action
2017-02-01T17:04:54+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/community/Magestore/Bannerslider/Helper/Data.php
2017-02-01T17:04:54+00:00 DEBUG (7):   WAS:        return Mage::getSingleton('adminhtml/url')->getUrl('bannerslideradmin/adminhtml_standardslider/preview/');
2017-02-01T17:04:54+00:00 DEBUG (7):   NOW:        return Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/bannerslideradmin_standardslider/preview/');
2017-02-01T17:04:54+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/community/Magestore/Bannerslider/etc/adminhtml.xml
2017-02-01T17:04:54+00:00 DEBUG (7):   WAS:                    <action>bannerslideradmin/adminhtml_bannerslider</action>
2017-02-01T17:04:54+00:00 DEBUG (7):   NOW:                    <action>adminhtml/bannerslideradmin_bannerslider</action>
2017-02-01T17:04:54+00:00 DEBUG (7):   WAS:                    <action>bannerslideradmin/adminhtml_banner/index</action>
2017-02-01T17:04:54+00:00 DEBUG (7):   NOW:                    <action>adminhtml/bannerslideradmin_banner/index</action>
2017-02-01T17:04:54+00:00 DEBUG (7):   WAS:                    <action>bannerslideradmin/adminhtml_standardslider</action>
2017-02-01T17:04:54+00:00 DEBUG (7):   NOW:                    <action>adminhtml/bannerslideradmin_standardslider</action>
2017-02-01T17:04:54+00:00 DEBUG (7):   WAS:                            <action>bannerslideradmin/adminhtml_report</action>
2017-02-01T17:04:54+00:00 DEBUG (7):   NOW:                            <action>adminhtml/bannerslideradmin_report</action>
2017-02-01T17:04:54+00:00 DEBUG (7):   WAS:                            <action>bannerslideradmin/adminhtml_report/banner</action>
2017-02-01T17:04:54+00:00 DEBUG (7):   NOW:                            <action>adminhtml/bannerslideradmin_report/banner</action>
2017-02-01T17:04:54+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/community/CommerceLab/News/controllers/NewsitemController.php
2017-02-01T17:04:54+00:00 DEBUG (7):   WAS:                    $data["url"] = Mage::getUrl('clnews/adminhtml_comment/edit/id/' . $commentId);
2017-02-01T17:04:54+00:00 DEBUG (7):   NOW:                    $data["url"] = Mage::getUrl('adminhtml/comment/edit/id/' . $commentId);
2017-02-01T17:04:54+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/community/CommerceLab/News/etc/config.xml
2017-02-01T17:04:54+00:00 DEBUG (7):   WAS:                        <action>clnews/adminhtml_news/new</action>
2017-02-01T17:04:54+00:00 DEBUG (7):   NOW:                        <action>adminhtml/news/new</action>
2017-02-01T17:04:54+00:00 DEBUG (7):   WAS:                        <action>clnews/adminhtml_news/index</action>
2017-02-01T17:04:54+00:00 DEBUG (7):   NOW:                        <action>adminhtml/news/index</action>
2017-02-01T17:04:54+00:00 DEBUG (7):   WAS:                        <action>clnews/adminhtml_category/</action>
2017-02-01T17:04:54+00:00 DEBUG (7):   NOW:                        <action>adminhtml/category/</action>
2017-02-01T17:04:54+00:00 DEBUG (7):   WAS:                        <action>clnews/adminhtml_comment/</action>
2017-02-01T17:04:54+00:00 DEBUG (7):   NOW:                        <action>adminhtml/comment/</action>
2017-02-01T17:04:55+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/Magestore/Magenotification/Block/Adminhtml/License/Updateform.php
2017-02-01T17:04:55+00:00 DEBUG (7):   WAS:		//return $this->getUrl('magenotification/adminhtml_license/upgrade',array('licensekey'=>$this->getLicensekey(),'_secure'=>true));
2017-02-01T17:04:55+00:00 DEBUG (7):   NOW:		//return $this->getUrl('adminhtml/magenotification_license/upgrade',array('licensekey'=>$this->getLicensekey(),'_secure'=>true));
2017-02-01T17:04:55+00:00 DEBUG (7):   WAS:		return $this->getUrl('magenotification/adminhtml_license/upgrade',array('_secure'=>true));
2017-02-01T17:04:55+00:00 DEBUG (7):   NOW:		return $this->getUrl('adminhtml/magenotification_license/upgrade',array('_secure'=>true));
2017-02-01T17:04:55+00:00 DEBUG (7):   WAS:		//return $this->getUrl('magenotification/adminhtml_license/viewprice',array('licensekey'=>$this->getLicensekey(),'_secure'=>true));
2017-02-01T17:04:55+00:00 DEBUG (7):   NOW:		//return $this->getUrl('adminhtml/magenotification_license/viewprice',array('licensekey'=>$this->getLicensekey(),'_secure'=>true));
2017-02-01T17:04:55+00:00 DEBUG (7):   WAS:		return $this->getUrl('magenotification/adminhtml_license/viewprice',array('_secure'=>true));
2017-02-01T17:04:55+00:00 DEBUG (7):   NOW:		return $this->getUrl('adminhtml/magenotification_license/viewprice',array('_secure'=>true));
2017-02-01T17:04:55+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/Magestore/Magenotification/Block/Adminhtml/License/Purchaseform.php
2017-02-01T17:04:55+00:00 DEBUG (7):   WAS:		return $this->getUrl('magenotification/adminhtml_license/purchase',array('extension'=>$this->getExtensionName(),'_secure'=>true));
2017-02-01T17:04:55+00:00 DEBUG (7):   NOW:		return $this->getUrl('adminhtml/magenotification_license/purchase',array('extension'=>$this->getExtensionName(),'_secure'=>true));
2017-02-01T17:04:55+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/Magestore/Magenotification/controllers/Adminhtml/LicenseController.php
2017-02-01T17:04:55+00:00 DEBUG (7):   WAS:class Magestore_Magenotification_Adminhtml_LicenseController extends Mage_Adminhtml_Controller_Action
2017-02-01T17:04:55+00:00 DEBUG (7):   NOW:class Magestore_Magenotification_Adminhtml_Magenotification_LicenseController extends Mage_Adminhtml_Controller_Action
2017-02-01T17:04:55+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/Magestore/Magenotification/controllers/Adminhtml/MagenotificationController.php
2017-02-01T17:04:55+00:00 DEBUG (7):   WAS:class Magestore_Magenotification_Adminhtml_MagenotificationController extends Mage_Adminhtml_Controller_Action
2017-02-01T17:04:55+00:00 DEBUG (7):   NOW:class Magestore_Magenotification_Adminhtml_Magenotification_MagenotificationController extends Mage_Adminhtml_Controller_Action
2017-02-01T17:04:55+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/Magestore/Magenotification/controllers/Adminhtml/FeedbackController.php
2017-02-01T17:04:55+00:00 DEBUG (7):   WAS:class Magestore_Magenotification_Adminhtml_FeedbackController extends Mage_Adminhtml_Controller_Action
2017-02-01T17:04:55+00:00 DEBUG (7):   NOW:class Magestore_Magenotification_Adminhtml_Magenotification_FeedbackController extends Mage_Adminhtml_Controller_Action
2017-02-01T17:04:55+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/Magestore/Magenotification/etc/adminhtml.xml
2017-02-01T17:04:55+00:00 DEBUG (7):   WAS:							<action>magenotification/adminhtml_feedback/index/</action>
2017-02-01T17:04:55+00:00 DEBUG (7):   NOW:							<action>adminhtml/magenotification_feedback/index/</action>
2017-02-01T17:04:55+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/Rootinfo/Attribute/Model/Observer.php
2017-02-01T17:04:55+00:00 DEBUG (7):   WAS:        $url = Mage::helper("adminhtml")->getUrl("attribute/adminhtml_attribute/exportcsv");
2017-02-01T17:04:55+00:00 DEBUG (7):   NOW:        $url = Mage::helper("adminhtml")->getUrl("adminhtml/attribute_attribute/exportcsv");
2017-02-01T17:04:55+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/Rootinfo/Attribute/controllers/Adminhtml/AttributeController.php
2017-02-01T17:04:55+00:00 DEBUG (7):   WAS:class Rootinfo_Attribute_Adminhtml_AttributeController extends Mage_Adminhtml_Controller_Action
2017-02-01T17:04:55+00:00 DEBUG (7):   NOW:class Rootinfo_Attribute_Adminhtml_Attribute_AttributeController extends Mage_Adminhtml_Controller_Action
2017-02-01T17:04:55+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/Rootinfo/Attribute/etc/adminhtml.xml
2017-02-01T17:04:55+00:00 DEBUG (7):   WAS:			<action>attribute/adminhtml_attribute/export</action>
2017-02-01T17:04:55+00:00 DEBUG (7):   NOW:			<action>adminhtml/attribute_attribute/export</action>
2017-02-01T17:04:55+00:00 DEBUG (7):   WAS:			<action>attribute/adminhtml_attribute/import</action>
2017-02-01T17:04:55+00:00 DEBUG (7):   NOW:			<action>adminhtml/attribute_attribute/import</action>
2017-02-01T17:04:56+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/GardenMedia/GmStorelocator/controllers/Adminhtml/IndexController.php
2017-02-01T17:04:56+00:00 DEBUG (7):   WAS:class GardenMedia_GmStorelocator_Adminhtml_IndexController extends Mage_Adminhtml_Controller_Action
2017-02-01T17:04:56+00:00 DEBUG (7):   NOW:class GardenMedia_GmStorelocator_Adminhtml_Gmstorelocator_IndexController extends Mage_Adminhtml_Controller_Action
2017-02-01T17:04:56+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/GardenMedia/GmStorelocator/etc/adminhtml.xml
2017-02-01T17:04:56+00:00 DEBUG (7):   WAS:                    <action>gmstorelocator/adminhtml_index/index</action>
2017-02-01T17:04:56+00:00 DEBUG (7):   NOW:                    <action>adminhtml/gmstorelocator_index/index</action>
2017-02-01T17:04:56+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/GardenMedia/BagsterCode/controllers/Adminhtml/BagstercodeController.php
2017-02-01T17:04:56+00:00 DEBUG (7):   WAS:class GardenMedia_BagsterCode_Adminhtml_BagstercodeController extends Mage_Adminhtml_Controller_Action
2017-02-01T17:04:56+00:00 DEBUG (7):   NOW:class GardenMedia_BagsterCode_Adminhtml_Bagstercode_BagstercodeController extends Mage_Adminhtml_Controller_Action
2017-02-01T17:04:56+00:00 DEBUG (7): /var/www/clients/client2/web4/web/shark/httpdocs/app/code/local/GardenMedia/BagsterCode/etc/adminhtml.xml
2017-02-01T17:04:56+00:00 DEBUG (7):   WAS:                    <action>bagstercode/adminhtml_bagstercode/new</action>
2017-02-01T17:04:56+00:00 DEBUG (7):   NOW:                    <action>adminhtml/bagstercode_bagstercode/new</action>
2017-02-01T17:04:56+00:00 DEBUG (7):   WAS:                    <action>bagstercode/adminhtml_bagstercode/index</action>
2017-02-01T17:04:56+00:00 DEBUG (7):   NOW:                    <action>adminhtml/bagstercode_bagstercode/index</action>