Giter Site home page Giter Site logo

Comments (6)

Padina14 avatar Padina14 commented on June 13, 2024

Saver should be the following patch.
vhs_AbstractContentViewHelper.patch

from vhs.

NamelessCoder avatar NamelessCoder commented on June 13, 2024

This problem does not exist in dev-development and version 7.0+, see https://github.com/FluidTYPO3/vhs/blob/development/Classes/ViewHelpers/Content/AbstractContentViewHelper.php#L236. No further releases will be made in the 6.x branches so I suggest you upgrade VHS to the latest major version 7.0+ (which is compatible with your PHP and TYPO3 versions).

from vhs.

Padina14 avatar Padina14 commented on June 13, 2024

The PHP-code in that place of the patch will cause an error. I added a screenshot from a sandbox for causing the same warning, which caused the exception in my case.

PHP has changed its behavior in the newer versions. The error would caused in version 7.0 in the same way; or can you guarantee, that the value $GLOBALS['TSFE']->recordRegister[$parent] is defined everytime?

Bildschirmfoto 2024-02-20 um 14 22 29

from vhs.

NamelessCoder avatar NamelessCoder commented on June 13, 2024

Look at the link I posted. There's an added isset() check (which does not throw the warning if the index doesn't exist) and if the variable doesn't exist, we initialize it with a value of 1. If it does exist, we increment it same as before. So yes, the variable is guaranteed to be defined.

The variable is then decremented later without a corresponding isset() check because at that point, the variable is guaranteed to exist.

from vhs.

Padina14 avatar Padina14 commented on June 13, 2024

Sorry. My Mistake. I havn't read your comment deeply and the code of the develop deeply enough. I am really sorry.

from vhs.

NamelessCoder avatar NamelessCoder commented on June 13, 2024

All good @Padina14 :)

from vhs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.