Bug #65728
closedCall to a member function wrapClickMenuOnIcon() on a non-object
Added by Kurt Gusbeth over 9 years ago. Updated about 6 years ago.
100%
Description
I get this error message in my backend module:
Fatal error: Call to a member function wrapClickMenuOnIcon() on a non-object in /var/www/html/typo3_src-7.1.0/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php on line 721
when I use this fluid script:
<f:be.tableList tableName="tx_camaliga_domain_model_content" fieldList="{0: 'title', 1: 'shortdesc'}" storagePid="{pid}" levels="0" sortField="title" readOnly="true" enableClickMenu="true" clickTitleMode="info" alternateBackgroundColors="true" />
It works in Typo3 6.2, but not in Typo3 7.1.
Updated by Markus Bischof over 9 years ago
+1
If you set enableClickMenu
to false
the table is renderd - but without the buttons to edit or modify records.
Markus
Updated by Markus Bischof over 9 years ago
After some debugging I'm one step further.
The problem seems to be the function getModule
in sysext/recordlist/Classes/RecordList/DatabaseRecordList.php
. This function is called in line 721
in the same Class when building the list with the option clickMenuEnabled
.
The problem is that getModule
returns $GLOBALS['SOBE']
which was removed in TYPO3 CMS 7.0 (http://wiki.typo3.org/TYPO3_CMS_7.0)
Markus
Updated by Kurt Gusbeth over 9 years ago
OK, I have set enableClickMenu to false...
Updated by Benni Mack over 9 years ago
- Target version changed from 7.1 (Cleanup) to 7.4 (Backend)
Updated by Susanne Moog over 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Benni Mack about 9 years ago
- Target version changed from 7.5 to 7 LTS
Updated by Benni Mack about 9 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
7 LTS)
can you recheck again with current master again, please?
Updated by Kurt Gusbeth about 9 years ago
I dont know how to install the lastest TYPO3 version. When I do it like described here:
https://wiki.typo3.org/Clone_%28Git%29
I get only an error:
Warning: require(/var/www/html/TYPO3.CMS/typo3/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/TYPO3.CMS/typo3/index.php on line 19
Updated by Kurt Gusbeth about 9 years ago
I cant test it with the TYPO3 7.5.0, because that version doesnt run. I always get errors like this:
#1253036401: Argument "condition" has already been defined, thus it should not be defined again. (More information) TYPO3\CMS\Fluid\Core\ViewHelper\Exception thrown in file /var/www/html/typo3_src-7.5.0/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php in line 174.
or
Property TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService::$listUtility does not exist ReflectionException thrown in file /var/www/html/typo3_src-7.5.0/typo3/sysext/core/Classes/Utility/GeneralUtility.php in line 4348.
Updated by Kurt Gusbeth about 9 years ago
I have tried this now:
wget get.typo3.org/dev --content-disposition
TYPO3 runs, but I still get the error message:
Fatal error: Call to a member function wrapClickMenuOnIcon() on a non-object in /xxx/typo3conf/ext/gridelements/Classes/Xclass/DatabaseRecordList.php on line 1010
Updated by Kurt Gusbeth about 9 years ago
And when uninstalling gridelements:
Fatal error: Call to a member function wrapClickMenuOnIcon() on a non-object in /var/www/html/typo3_src-7.5.0/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php on line 745
Updated by Claus Due about 9 years ago
- Category changed from Fluid to 1599
The remaining problems are caused by gridelements replacing classes, likely combined with TYPO3 not being able to completely flush caches because of that issue. Manually flushing all caches should solve that.
For additional help with the composer based install of TYPO3 7.5.0 (and future versions too) I suggest checking the updated install instructions. Essentially, you do "composer install" and it creates the vendor dir you're missing. And of course don't hesitate to use the forums or chats for a more "live" help from other users to install 7.5.0 ;)
Updated by Gerrit Code Review about 9 years ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/44139
Updated by Gerrit Code Review about 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/44139
Updated by Gerrit Code Review about 9 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/44139
Updated by Gerrit Code Review about 9 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/44139
Updated by Gerrit Code Review about 9 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/44139
Updated by Kurt Gusbeth about 9 years ago
I have tested now the 2 patches and it works now.
Well done!
Updated by Claus Due about 9 years ago
- Status changed from Under Review to New
Sorry Kurt, I had to abandon the patch so I'm not sure what the situation is.
The proposed patch I created was called "ugly" so I'm definitely not going to attempt a second one.
Updated by Christian Kuhn about 9 years ago
The wrapClickMenuOnIcon() fatal was solved with #70494, issueCommand() will still give headaches, though.
I guess it should be tackled in a similar way, the method is similar "static" as the first one and there is little reason to not move it over to BackendUtility next the other little helper methods that live there already. This would then free DatabaseRecordList from its dependency to DocumentTemplate altogether as far as i can see, and thus the problem vanishes.
Updated by Gerrit Code Review about 9 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44329
Updated by Jan Helke about 9 years ago
The patch deals with issueCommand in the way as Christian proposed. Together with his already merged patch, it should solve this issue.
Updated by Gerrit Code Review about 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44329
Updated by Gerrit Code Review about 9 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44329
Updated by Gerrit Code Review about 9 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44329
Updated by Jan Helke about 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 14e4e0148c1a09da407632e16603d9020493c219.