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

no @var annotation for property "extConf" #335

Open
Hobokens opened this issue Mar 15, 2022 · 9 comments
Open

no @var annotation for property "extConf" #335

Hobokens opened this issue Mar 15, 2022 · 9 comments
Assignees
Labels

Comments

@Hobokens
Copy link

Hobokens commented Mar 15, 2022

Hi,
I'm using TYPO3 v10.4.24, maps v10.0.4 and events2 v7.1.0.

When I link to an external location I get this error:

ncaught TYPO3 Exception: #1363778104: There is no @var annotation for property "extConf" in class "JWeiland\Maps2\Domain\Model\PoiCollection". | InvalidArgumentException thrown in file /var/www/vhosts/xxx.my-provider.de/httpdocs/typo3cms/typo3_src-10.4.15/typo3/sysext/extbase/Classes/Validation/ValidatorResolver.php in line 157. Requested URL: https://www.my-domain.de/veranstaltungen/kalender/ort/my-external-place

I get this issue in frontend when I try to use the search function of events2 in list view, too.

See also the same issue #here.

Regards
Hobokens

@froemken froemken self-assigned this Mar 15, 2022
@froemken
Copy link
Contributor

Hello @Hobokens

thank you for your help to make events2 a better extension. It will be interesting to find out, what the real issue will be.

Stefan

@froemken
Copy link
Contributor

Hello @Hobokens

I have just installed the exact same extension versions. If I click on the location link from detail view I get following error message:

Fluid parse error in template Location_action_show_85eecc224160c71c424f2a0f30c96f85cd76c740, line 8 at character 4. Error: The ViewHelper "<m2:widget.poiCollection>" could not be resolved.

Sure, with maps2 10 I have removed the Fluid Widgets. So, how do you have prevented that error message?
Next question: My error was thrown in Fluid Template of Location/Show.html. So, the validation of the given Location to showAction was processed without any problems.

It's hard for me to figure out the real problem. Can you attach the overwritten templates here, please?

Stefan

@Hobokens
Copy link
Author

Hello @froemken
Even if I remove all my overwritten templates, I get the reported error message.
I don't get your error message.

Hobokens

The website is hosted by JWeiland. I can give you access via Slack PM.

@froemken
Copy link
Contributor

Hello @Hobokens

can you please send me your customer number and URI of your website via Slack?

Thank you

Stefan

@Hobokens
Copy link
Author

Hobokens commented Jul 20, 2022

Hello @froemken ,
With TYP3 10.4.30 and events2 8.0.1. the problem remains.

I've sent you my customer number und the URL of my website some weeks ago via Slack.
Kind regards
Hobokens

@UBA-NE
Copy link

UBA-NE commented Sep 13, 2022

we had the exact same Problem, we have now changed the PoiCollection Model Class in the maps2 extension and now everything works as expected.

./maps2/Classes/Domain/Model/PoiCollection.php

....
class PoiCollection extends AbstractEntity
{
    /**
     * extConf
     * @var int
     */
    protected ExtConf $extConf;

    /**
     * mapHelper
     * @var MapHelper
     */
    protected MapHelper $mapHelper;
    
    /**
     * sysLanguageUid
     * @var int
     */
    protected int $sysLanguageUid = 0;

    /**
     * l10nParent
     * @var int
     */
    protected int $l10nParent = 0;
    
    /**
     * collectionType
     * @var string
     */
    protected string $collectionType = '';

....

@Hobokens
Copy link
Author

@ulf-ba ,
great, this solves my problem, too.

@froemken
Copy link
Contributor

@var int for a property of type ExtConf?!?! Why? Can you please tell me something more about your environment?

@UBA-NE
Copy link

UBA-NE commented Sep 19, 2022

TYPO3 - 10.4.31
events2 - 8.0.1
maps2 - 10.0.4

PHP: 7.4.30
MySQL 5.5.5-10.5.15-MariaDB-0+deb11u1

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

No branches or pull requests

3 participants