|
Written on: 17. 08. 2010 [16:49]
|
|
janusz
Janusz Paskiewicz
Topic creator
registered since: 17.08.2010
Posts: 5
|
Hi Everyone,
Is this definition ok?
class Mage_Core_Model_App extends Flagbit_Typo3connect_Rewrites_Mage_Core_Model_App
My real problem is of further concern...
I have Magento 1.4.1.1
The newest TypoGento 1.0.2
Typo3 in version 4.4
In the backend of Typo3 if I go in left menu to "MAGENTO SHOP" -> "ADMIN" it just comes with blank content page.
I analysed the code and it looks like the problems occurs here:
Mage::app()->setCurrentStore(Mage::app()->getStore($store)); (class.tx_fbmagento_interface.php, line 113)
It just stops on that method: Mage::app()->getStore($store) without any error and does not go any further.
I tested the value of $store which is 'default' and that is correct.
I think it must be connected with the way the class Mage_Core_Model_App is redefined...
I appreciate any help on that!
Kind Regards,
Janusz
|
|
Written on: 01. 09. 2010 [15:36]
|
|
wavesurfer
Hans
registered since: 30.07.2010
Posts: 3
|
Hi,
I have the same error in the frontend :
Fatal error: Class 'Flagbit_Typo3connect_Rewrite_Mage_Core_Model_App' not found in H:\xampp\htdocs\shopping\app\code\community\Flagbit\Typo3connect\Rewrites\Mage\Core\Model\App.php on line 2
Is that a typical rookie error ?
Best regards
Hans-Jürgen
|
|
Written on: 26. 09. 2010 [05:16]
|
|
reggie
Reginaldo
registered since: 15.09.2010
Posts: 3
|
I think Suffkopp solved this problem. In another forum he posted the following and it worked for me. But I still have the problem of a blank frontend.
In the class.tx_fbmagento_interface.php file cut this code:
// overwrite Magento Autoload Funktion
if(class_exists('Varien_Autoload', false)){
spl_autoload_unregister(array(Varien_Autoload::instance(), 'autoload'));
}
spl_autoload_register ( array (&$this, 'autoload' ) );
and insert it after this code:
// Init Mage
$store = tx_fbmagento_tools::getFELangStoreCode();
Mage::app()->setCurrentStore(Mage::app()->getStore($store));
restore_error_handler();
if($GLOBALS['TSFE']->cObj instanceof tslib_cObj) {
$cObj = $GLOBALS['TSFE']->cObj;
$baseUrl = $cObj->getTypoLink_URL($GLOBALS['TSFE']->id);
// get rid of trailing .html because of Real URL
$pos = strrpos($baseUrl, '.');
$extension = substr($baseUrl, $pos);
if (strpos($extension, '/') === false) {
$baseUrl = substr($baseUrl, 0, $pos);
}
}
After I did this I could see the Magento backend in the typo3 backend in Magento Shop -> Admin.
Did somebody solve the problem of the blank frontend?
|
|
Written on: 20. 10. 2010 [18:59]
|
|
wavesurfer
Hans
registered since: 30.07.2010
Posts: 3
|
Well I solved the problem
Fatal error: Class 'Flagbit_Typo3connect_Rewrite_Mage_Core_Model_App' not found in H:\xampp\htdocs\shopping\app\code\community\Flagbit\Typo3connect\Rewrites\Mage\Core\Model\App.php on line 2
similar to Reggie and janucz, but instead of changing anything in App.php I just renamed the folder "Rewrites" to "Rewrite" ...
IMHO that works too, until somebody proves that black is white 
Regards Hans
[This article was edited 1 times, at last 20.10.2010 at 19:00.]
|