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

Error Table missing #3

Open
SmartViDi opened this issue Sep 9, 2021 · 10 comments
Open

Error Table missing #3

SmartViDi opened this issue Sep 9, 2021 · 10 comments

Comments

@SmartViDi
Copy link

Hello,
with version 0.9.2 I get this error:
Table 'db84737_8.tx_t3oodle_domain_model_basepoll' doesn't exist

@GitCybers
Copy link

it seems the ext_tables.sql wasn`t updated/changed....

@arnoewill
Copy link

Hi, this extension is not compatible with 10.4 version of TYPO3 because the ext_typoscript_setup.typoscript file was removed and replaced by Configuration/Extbase/Persistence/Classe.php.

Just add this part of php code in a Configuration/Extbase/Persistence/Classe.php to resolve this issue

[ 'tableName' => 'tx_t3oodle_domain_model_poll', 'recordType' => 'FGTCLB\T3oodle\Domain\Model\BasePoll', 'subclasses' => [ '\FGTCLB\T3oodle\Domain\Model\SimplePoll' => FGTCLB\T3oodle\Domain\Model\SimplePoll::class, '\FGTCLB\T3oodle\Domain\Model\SchedulePoll' => FGTCLB\T3oodle\Domain\Model\SchedulePoll::class, ] ], FGTCLB\T3oodle\Domain\Model\SimplePoll::class => [ 'tableName' => 'tx_t3oodle_domain_model_poll', 'recordType' => 'FGTCLB\T3oodle\Domain\Model\SimplePoll' ], FGTCLB\T3oodle\Domain\Model\SchedulePoll::class => [ 'tableName' => 'tx_t3oodle_domain_model_poll', 'recordType' => 'FGTCLB\T3oodle\Domain\Model\SchedulePoll' ], ];

@GitCybers
Copy link

GitCybers commented Jan 4, 2022

Thanks for your answer. Do I have to change the Classes.php like this:

<?php
declare(strict_types = 1);
return [ 'tableName' => 'tx_t3oodle_domain_model_poll', 'recordType' => 'FGTCLB\T3oodle\Domain\Model\BasePoll', 'subclasses' => [ '\FGTCLB\T3oodle\Domain\Model\SimplePoll' => FGTCLB\T3oodle\Domain\Model\SimplePoll::class, '\FGTCLB\T3oodle\Domain\Model\SchedulePoll' => FGTCLB\T3oodle\Domain\Model\SchedulePoll::class, ] ], FGTCLB\T3oodle\Domain\Model\SimplePoll::class => [ 'tableName' => 'tx_t3oodle_domain_model_poll', 'recordType' => 'FGTCLB\T3oodle\Domain\Model\SimplePoll' ], FGTCLB\T3oodle\Domain\Model\SchedulePoll::class => [ 'tableName' => 'tx_t3oodle_domain_model_poll', 'recordType' => 'FGTCLB\T3oodle\Domain\Model\SchedulePoll' ], ];

@GitCybers
Copy link

Hi, this extension is not compatible with 10.4 version of TYPO3 because the ext_typoscript_setup.typoscript file was removed and replaced by Configuration/Extbase/Persistence/Classe.php.

Just add this part of php code in a Configuration/Extbase/Persistence/Classe.php to resolve this issue
[ 'tableName' => 'tx_t3oodle_domain_model_poll', 'recordType' => 'FGTCLB\T3oodle\Domain\Model\BasePoll', 'subclasses' => [ '\FGTCLB\T3oodle\Domain\Model\SimplePoll' => FGTCLB\T3oodle\Domain\Model\SimplePoll::class, '\FGTCLB\T3oodle\Domain\Model\SchedulePoll' => FGTCLB\T3oodle\Domain\Model\SchedulePoll::class, ] ], FGTCLB\T3oodle\Domain\Model\SimplePoll::class => [ 'tableName' => 'tx_t3oodle_domain_model_poll', 'recordType' => 'FGTCLB\T3oodle\Domain\Model\SimplePoll' ], FGTCLB\T3oodle\Domain\Model\SchedulePoll::class => [ 'tableName' => 'tx_t3oodle_domain_model_poll', 'recordType' => 'FGTCLB\T3oodle\Domain\Model\SchedulePoll' ], ];

If I create the file Classes.php like this I get this error if I start my website:
Oops, an error occurred!
syntax error, unexpected ',', expecting ';'
Classes.zip

@mbrodala
Copy link

mbrodala commented May 3, 2022

There's an syntax error:

image

You need to drop the extra ] at line 11 here:

<?php

declare(strict_types = 1);

return [
	'tableName' => 'tx_t3oodle_domain_model_poll',
	'recordType' => 'FGTCLB\T3oodle\Domain\Model\BasePoll',
	'subclasses' => [
		'\FGTCLB\T3oodle\Domain\Model\SimplePoll' => FGTCLB\T3oodle\Domain\Model\SimplePoll::class,
		'\FGTCLB\T3oodle\Domain\Model\SchedulePoll' => FGTCLB\T3oodle\Domain\Model\SchedulePoll::class,
-		]
	],
	FGTCLB\T3oodle\Domain\Model\SimplePoll::class => [
	'tableName' => 'tx_t3oodle_domain_model_poll',
	'recordType' => 'FGTCLB\T3oodle\Domain\Model\SimplePoll'
	],
	FGTCLB\T3oodle\Domain\Model\SchedulePoll::class => [
		'tableName' => 'tx_t3oodle_domain_model_poll',
		'recordType' => 'FGTCLB\T3oodle\Domain\Model\SchedulePoll'
		],
	]; 

@GitCybers
Copy link

Like this? Then I get this error:

Oops, an error occurred!
array_shift() expects parameter 1 to be array, bool given
Classes.zip

@mbrodala
Copy link

mbrodala commented May 3, 2022

Please, try to have a setup with PHP syntax validation. Teaching basics like this is out of scope of this issue/project. ;-)

@GitCybers
Copy link

Thanks for your help. This error seems to be in the main code of the t3oodle extension. My PHP ist very bad. I just want to use this extension for a school website. It is not my profession. Just a hobby...

@mbrodala
Copy link

mbrodala commented May 3, 2022

If that is the case, please create a ticket with all necessary details (your exact TYPO3 version, the full error including stack trace, your last steps, etc.)

@GitCybers
Copy link

once again:
Extension 0.9.2 with the last Classes.php from 2h ago:

Error Core: Error handler (BE): PHP Warning: Illegal string offset 'properties' in /kunden/84737_51427/webseiten/kgsfrankenforst2/typo3_src-10.4.27/typo3/sysext/extbase/Classes/Persistence/ClassesConfigurationFactory.php line 108

Core: Error handler (BE): PHP Warning: class_parents(): Class tableName does not exist and could not be loaded in /kunden/84737_51427/webseiten/kgsfrankenforst2/typo3_src-10.4.27/typo3/sysext/extbase/Classes/Persistence/ClassesConfigurationFactory.php line 118

Core: Exception handler (WEB): Uncaught TYPO3 Exception: array_shift() expects parameter 1 to be array, bool given | TypeError thrown in file /kunden/84737_51427/webseiten/kgsfrankenforst2/typo3_src-10.4.27/typo3/sysext/extbase/Classes/Persistence/ClassesConfigurationFactory.php in line 119. Requested URL: https://www.kgsfrankenforst.de/typo3/index.php?route=%%2Fmodule%%2Fsystem%%2FBelogLog&token=--AnonymizedToken--&tx_belog_system_beloglog%%5Bconstraint%%5D%%5Baction%%5D=-1

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

4 participants