Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error after installation, if devlog is installed #9

Closed
seirerman opened this issue Feb 22, 2017 · 2 comments
Closed

Fatal error after installation, if devlog is installed #9

seirerman opened this issue Feb 22, 2017 · 2 comments

Comments

@seirerman
Copy link
Contributor

I get a fatal error when I install be_links, resulting in a broken backend:

Uncaught TYPO3 Exception
Serialization of 'Closure' is not allowed
Exception thrown in file /var/www/html/t3inn/typo3conf/ext/devlog/Classes/Domain/Repository/EntryRepository.php in line 254.

and

caller => 'TYPO3\CMS\Core\Database\DatabaseConnection::exec_SELECTquery' (60 chars)
ERROR => 'Table 't3inn.tx_belinks_link' doesn't exist' (43 chars)
lastBuiltQuery => 'SELECT * FROM tx_belinks_link WHERE hidden=0 AND deleted=0 AND type=1' (69 chars)
debug_backtrace => 'call_user_func#21 // {closure}# // TYPO3\CMS\Backend\Http\Application->ru
      n#20 // TYPO3\CMS\Core\Core\Bootstrap->handleRequest#94 // TYPO3\CMS\Back
      end\Http\BackendModuleRequestHandler->handleRequest#302 // TYPO3\CMS\Back
      end\Http\BackendModuleRequestHandler->dispatchModule#92 // TYPO3\CMS\Extb
      ase\Core\Bootstrap->run#214 // TYPO3\CMS\Extbase\Core\Bootstrap->handl
      eRequest#193 // TYPO3\CMS\Extbase\Mvc\Web\BackendRequestHandler->handleRe
      quest#206 // TYPO3\CMS\Extbase\Mvc\Dispatcher->dispatch#32 // TYPO3\CMS\E
      xtbase\Mvc\Controller\ActionController->processRequest#86 // TYPO3\CMS\Ex
      tbase\Mvc\Controller\ActionController->callActionMethod#176 // call_user_
      func_array#283 // TYPO3\CMS\Extensionmanager\Controller\ActionController->
      ;toggleExtensionInstallationStateAction# // TYPO3\CMS\Extensionmanager\Servi
      ce\ExtensionManagementService->installExtension#92 // TYPO3\CMS\Extension
      manager\Service\ExtensionManagementService->installDependencies#229 // TY
      PO3\CMS\Extensionmanager\Utility\InstallUtility->install#367 // TYPO3\CMS
      \Extensionmanager\Utility\InstallUtility->reloadCaches#188 // TYPO3\CMS\C
      ore\Core\Bootstrap->loadExtensionTables#446 // TYPO3\CMS\Core\Core\Bootst
      rap->runExtTablesPostProcessingHooks#975 // CPSIT\BeLinks\Hook\BootstrapH
      ook->processData#1028 // CPSIT\BeLinks\Hook\BootstrapHook->addMainModu
      les#40 // TYPO3\CMS\Core\Database\DatabaseConnection->exec_SELECTgetRows#
      53 // TYPO3\CMS\Core\Database\DatabaseConnection->exec_SELECTquery#377 //
       TYPO3\CMS\Core\Database\DatabaseConnection->debug#314' (1511 chars)

This only happens if the extension devlog is installed at the time of the be_links installation.

So I tried to create the table manually:

CREATE TABLE tx_belinks_link (
    uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
    pid int(11) unsigned DEFAULT '0' NOT NULL,

    cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
    crdate int(11) unsigned DEFAULT '0' NOT NULL,
    tstamp int(11) unsigned DEFAULT '0' NOT NULL,
    deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
    hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,

    title varchar(255) DEFAULT '' NOT NULL,
    type int(11) unsigned DEFAULT '0' NOT NULL,
    url mediumtext DEFAULT '' NOT NULL,
    icon blob NOT NULL,
    authentication varchar(10) DEFAULT '' NOT NULL,
    parent varchar(30) DEFAULT '0' NOT NULL,

    PRIMARY KEY (uid),
    KEY parent (pid)
);

That's when I ran into the root of the problem:

  • Invalid default value for 'uid'
  • BLOB/TEXT column 'url' can't have a default value

Fixing those two lines in ext_tables.sql solved my problem.

@IchHabRecht
Copy link
Contributor

Hi,

Thank you for the report. Would you mind to open a pull request with the solution you provided?

@IchHabRecht
Copy link
Contributor

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants