[TYPO3-mvc] How to make blog_example work?
Dmitry Dulepov
dmitry.dulepov at gmail.com
Wed May 26 15:13:09 CEST 2010
Hi!
I have to look into Extbase–related coding. I just made my fourth attempt
to run blog_example 1.0.0 with recent trunk. I managed to fix one exception
and now I hit another, which I have no idea how to fix. I need community's
help.
Problem: when using a Backend module, I click on the blog and then on the
post, I get an exception:
=====================
#1247602160: Table 't3trunk.tx_extbase_persistence_objectstorage' doesn't exist
Tx_Extbase_Persistence_Storage_Exception_SqlError thrown in file
~/Projects/My/t3trunk/typo3/sysext/extbase/Classes/Persistence/Storage/Typo3DbBackend.php
in line 958.
38 Tx_Extbase_Persistence_Storage_Typo3DbBackend::checkSqlErrors()
~/Projects/My/t3trunk/typo3/sysext/extbase/Classes/Persistence/Storage/Typo3DbBackend.php:
00226: // debug($sql,-2);
00227: $result = $this->databaseHandle->sql_query($sql);
00228: $this->checkSqlErrors();
00229: $rows = $this->getRowsFromResult($query->getSource(), $result);
00230: $rows = $this->doLanguageAndWorkspaceOverlay($query->getSource(),
$rows);
=====================
Full trace: http://pastebin.com/1wRRtRP6
If I try to create a new post, I get the same error message but a different
stack trace:
=====================
Uncaught TYPO3 Exception
#1247602160: Table 't3trunk.tx_extbase_persistence_objectstorage' doesn't exist
Tx_Extbase_Persistence_Storage_Exception_SqlError thrown in file
~/Projects/My/t3trunk/typo3/sysext/extbase/Classes/Persistence/Storage/Typo3DbBackend.php
in line 958.
15 Tx_Extbase_Persistence_Storage_Typo3DbBackend::checkSqlErrors()
~/Projects/My/t3trunk/typo3/sysext/extbase/Classes/Persistence/Storage/Typo3DbBackend.php:
00249: // debug($sql,-2);
00250: $result = $this->databaseHandle->sql_query($statement);
00251: $this->checkSqlErrors();
00252: $rows = $this->getRowsFromResult($query->getSource(), $result);
00253: return current(current($rows));
=====================
Full trace: http://pastebin.com/C1XDjPwk
After fighting this for 5 hours, I can't make the official example work :(
My trunk installation is clean (no 3rd party extensions). I checked all
tables and blog_example TS is added to the main TS. I have no more ideas.
Can anybody help? I found a bug report with that mentions the same table
name (http://forge.typo3.org/issues/show/4836) but Jochen's fix is unusual:
---------------------
Index: extbase/trunk/ext_emconf.php
===================================================================
--- extbase/trunk/ext_emconf.php (revision 1624)
+++ extbase/trunk/ext_emconf.php (revision 1625)
@@ -29,7 +29,7 @@
'clearCacheOnLoad' => 0,
'lockType' => '',
'author_company' => 'TYPO3 core team',
- 'version' => '0.9.12',
+ 'version' => '0.9.13',
'constraints' => array(
'depends' => array(
'php' => '5.2.0-0.0.0',
---------------------
Source: http://forge.typo3.org/repositories/diff/typo3v4-mvc?rev=1625
So, does anybody have a clue how to make blog_example work? It is the
official sample, it must be working... What do I do wrong? Is it bad karma
or something else?
--
Dmitry Dulepov
TYPO3 expert / TYPO3 core&security teams member
Twitter: http://twitter.com/dmitryd
Read more @ http://dmitry-dulepov.com/
More information about the TYPO3-project-typo3v4mvc
mailing list