Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Include Problems after Moving Magento from local to server
 
Nilson89
Jr. Member
 
Total Posts:  24
Joined:  2009-06-07
 

Hi,

i moved a local installation of magento to my server.
I run magento-check.php and all is fine.
Frontend and Backend are running fine, but when I want to proceed checkout, i got an error:

Warning: include(Nilson/PrePayment/Model/Prepayment.php[function.include]failed to open streamNo such file or directory  in /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Core/functions.php on line 70
Trace
:
#0 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Core/functions.php(70): mageCoreErrorHandler(2, 'include(Nilson/...', '/var/www/vhosts...', 70, Array)
#1 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Core/functions.php(70): __autoload()
#2 [internal function]: __autoload('Nilson_PrePayme...')
#3 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Core/Model/Config.php(966): class_exists('Nilson_PrePayme...')
#4 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/Mage.php(317): Mage_Core_Model_Config->getModelInstance('prepayment/prep...', Array)
#5 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Payment/Helper/Data.php(75): Mage::getModel('prepayment/prep...')
#6 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Payment/Block/Form/Container.php(113): Mage_Payment_Helper_Data->getStoreMethods('1', Object(Mage_Sales_Model_Quote))
#7 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Payment/Block/Form/Container.php(44): Mage_Payment_Block_Form_Container->getMethods()
#8 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(199): Mage_Payment_Block_Form_Container->_prepareLayout()
#9 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Core/Model/Layout.php(446): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#10 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Core/Model/Layout.php(229): Mage_Core_Model_Layout->addBlock('Mage_Checkout_B...', 'checkout.paymen...')
#11 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Core/Model/Layout.php(195): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#12 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Core/Model/Layout.php(196): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#13 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Core/Model/Layout.php(196): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#14 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Core/Model/Layout.php(200): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#15 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(295): Mage_Core_Model_Layout->generateBlocks()
#16 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(223): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#17 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Checkout/controllers/OnepageController.php(137): Mage_Core_Controller_Varien_Action->loadLayout()
#18 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(367): Mage_Checkout_OnepageController->indexAction()
#19 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(247): Mage_Core_Controller_Varien_Action->dispatch('index')
#20 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(158): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#21 /var/www/vhosts/sunshinenailworld.de/httpdocs/app/Mage.php(457): Mage_Core_Controller_Varien_Front->dispatch()
#22 /var/www/vhosts/sunshinenailworld.de/httpdocs/index.php(52): Mage::run()
#23 {main}

I don´t know why so it would be very nice if someone could help me.

Nilson89

 
Magento Community Magento Community
Magento Community
Magento Community
 
robin2160
Mentor
 
Avatar
Total Posts:  1046
Joined:  2009-02-15
Berlin / Germany
 

Is the Bank Prepayment exention enable in your System - Configuration - Advanced.
Or you must reinstall the Bank Prepayment extension in the ConnectManager.
Or do have forgotten uploading this.

Hope this helps

 
Magento Community Magento Community
Magento Community
Magento Community
 
Nilson89
Jr. Member
 
Total Posts:  24
Joined:  2009-06-07
 

Its an own extension.
I developed it on my own pc and it´s running with my local installation.
I uploaded this extension in app/code/local like it is in my local installation.

Nilson89

 
Magento Community Magento Community
Magento Community
Magento Community
 
robin2160
Mentor
 
Avatar
Total Posts:  1046
Joined:  2009-02-15
Berlin / Germany
 

Do you have forgot to upload in the app\ect\modules your xxxxxx.xml?
And then you can activated this in the System - Configuration - Advanced.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Nilson89
Jr. Member
 
Total Posts:  24
Joined:  2009-06-07
 

so the Nilson_PrePayment.xml exists in app/etc/modules and in system->configuration->advanced this modul is also activated.

Nilson89

 
Magento Community Magento Community
Magento Community
Magento Community
 
robin2160
Mentor
 
Avatar
Total Posts:  1046
Joined:  2009-02-15
Berlin / Germany
 

Now, Magento do not found the functions.php from your extension.

If this the corrent path to to the functions.php from your online installation or is this the local path?

var/www/vhosts/sunshinenailworld.de/httpdocs/app/code/core/Mage/Core

 
Magento Community Magento Community
Magento Community
Magento Community
 
Nilson89
Jr. Member
 
Total Posts:  24
Joined:  2009-06-07
 

It´s the Path of the current installation on the Server.

What i asked me is why it works on my local pc and not on the server...?!

Nilson89

 
Magento Community Magento Community
Magento Community
Magento Community
 
Nilson89
Jr. Member
 
Total Posts:  24
Joined:  2009-06-07
 

I found the Problem.

Magento wants to load Nilson/PrePayment/Model/Prepayment.php but the file is named PrePayment.php.
I renamed it and now it works fine =)

Thanks for your help.

Typicall Unix/Windows problem ^^

Nilson89

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