DMKEBUSINESSGMBH/typo3-mksearch

PHP Catchable Fatal Error with rnbase

ThePinkOne opened this issue · 8 comments

I'm testing mksearch with solr and Typo3 7.6.22 .
Everything worked fine, I added an index, indexer composites and configuration. But then I got an error/mayday "Unknown Operator for comparation defined: OP_EQ_INT" . Here the full output:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: Unknown Operator for comparation defined: OP_EQ_INT | tx_rnbase_util_Exception thrown in file /var(...)/websitename/vendor/typo3/cms/typo3/sysext/core/Classes/Utility/GeneralUtility.php in line 4555. Requested URL: http://websitename/typo3/index.php?M=web_MksearchM1&moduleToken=94fb524cc396e017d3fd249342dbe71b6beb057e&id=333

When I read rnbase I thought I could try to fix this issue by having a look in the rn_base configuration. I changed nothing but now I can't even open mksearch UI in the backend. I only get this error

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1: PHP Catchable Fatal Error: Argument 2 passed to Tx_Rnbase_Backend_Utility_Icons::getSpriteIconForRecord() must be of the type array, null given, called in /var/(...)/websitename/web/typo3conf/ext/mksearch/mod1/util/class.tx_mksearch_mod1_util_Misc.php on line 57 and defined in /var/(...)/websitename/web/typo3conf/ext/rn_base/Classes/Backend/Utility/Icons.php line 80 | TYPO3\CMS\Core\Error\Exception thrown in file /var/(...)/websitename/vendor/typo3/cms/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 111. Requested URL: http://websitename/typo3/index.php?M=web_MksearchM1&moduleToken=94fb524cc396e017d3fd249342dbe71b6beb057e&id=10&

Any ideas what's going on?

Did you try to use the last available releases of rn_base (v1.4.5) and mksearch (v3.0.8) from github.

No, we use composer mode so I just got rn_base 1.4.0 and mksearch 3.0.0 .
I'll try the new releases from github and report later.

Okay, everything is up to date now but nothing changed. I still get this error. I've deleted the sysfolder, added a new one, deleted my cache...

Edit: I've deleted both extensions and re-installed them. Still not working and I get this error:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: Unknown Operator for comparation defined: OP_EQ_INT | tx_rnbase_util_Exception thrown in file /var/www/webseitenname/vendor/typo3/cms/typo3/sysext/core/Classes/Utility/GeneralUtility.php in line 4555. Requested URL: http://webseitenname/typo3/index.php?M=web_MksearchM1&moduleToken=059f84ca9155e6b07d29598df6fc3e1d8668c122&id=335

Seems like an issue due to autoloading. I haven't got a TYPO3 environment without composer right now, so I can't reproduce this error.
P.S. You are not the only one having this problem when composer is not used.

You've got me wrong:
I am using composer, I just had to add github to get the newest releases of mksearch and rn_base. I get them from typo3-ter before.

Okay, I will check that.

With the current master of rn_base everything should be fixed. Could you please check that?

Thank you. I got this error

  | Core: Exception handler (WEB): Uncaught TYPO3 Exception: SQL QUERY IS NOT VALID
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'OP_EQ_INT 335 AND tx_mksearch_indices.deleted=0 AND tx_mksearch_indices.hidden=' at line 1
SELECT tx_mksearch_indices.* FROM tx_mksearch_indices WHERE 1=1 AND tx_mksearch_indices.pid OP_EQ_INT 335 AND tx_mksearch_indices.deleted=0 AND tx_mksearch_indices.hidden=0 | tx_rnbase_util_Exception thrown in file /var/www/webseitenname/vendor/typo3/cms/typo3/sysext/core/Classes/Utility/GeneralUtility.php in line 4555. Requested URL: http://webseitenname/typo3/index.php?M=web_MksearchM1&moduleToken=e154c9d15796004421cdcffe3d70fa55cb7f328e&id=335
-- | --

Then I deleted and re-installed mksearch and now it seems to work. I'll open an new issue if I get the error again (hopefully not ;) ) . Thanks so far!!