GithubHelp home page GithubHelp logo

Comments (8)

doishub avatar doishub commented on June 1, 2024 1

Höchst interessant was Mootools da macht, danke für den Hinweis. Nachdem ich das aktiviert habe, funktioniert es bei mir auch nicht mehr.

Sofern cookiebar.settings.cookies befüllt ist, ist es ein Object und liefert bei cookiebar.settings.cookies.length dann undefined. Daher prüfe ich nun ob die ID auch in meinen abzufragenden Cookies existiert bevor ich diese verarbeite.

Ich habe soeben ein neuen Release gemacht (fb1551f / 1.2.6).

from contao-cookiebar.

doishub avatar doishub commented on June 1, 2024 1

@tblumrich

contao_cookiebar: consider_dnt: false storage_key: ccb_contao_token page_templates: - fe_page iframe_types: youtube: - ce_youtube vimeo: - ce_vimeo googlemaps: - ce_html_googlemaps - mod_html_googlemaps

Auch hier scheinen mir lediglich die Standard-Werte übernommen worden zu sein und brauchen somit nicht in die config.yml übertragen werden.

from contao-cookiebar.

OMOSde avatar OMOSde commented on June 1, 2024 1

Ein Update auf die neue Version hat das Problem bei mir behoben. Vielen Dank.

from contao-cookiebar.

tblumrich avatar tblumrich commented on June 1, 2024 1

Jawoll, bei mir ebenso. Dankeschön!

from contao-cookiebar.

tblumrich avatar tblumrich commented on June 1, 2024

Habe grade einen eigenen Issue gemacht, der -so scheint mir- das gleiche Problem hat. Insofern kann ich das wohl bestätigen.

from contao-cookiebar.

doishub avatar doishub commented on June 1, 2024

Hallo zusammen,

ich bekomme das in meiner 4.4 Version leider nicht reproduziert, kann es aber über die ziegelkontor.de feststellen.

Obwohl das JS-Object korrekterweise keine Cookies beinhaltet (Essenzielle Cookies werden nicht berücksichtigt) geht er in die for-Schleife und wirft den Fehler:

for(id in cookiebar.settings.cookies){
  // in id steht nun fälschlicherweise '$family'
}

Könnte hier natürlich noch eine Prüfung einbauen, würde nur gerne den Fehler vorher noch verstehen.
Verwendet ihr beide jQuery auf der Seite?

  • Standard-Einstellungen in der app/config/config.yml hinterlegt

Die Standard-Einstellungen müssen hier nicht übernommen werden, ausschließlich Einstellungen welche du bearbeiten / ergänzen möchtest müssten mit aufgenommen werden.

from contao-cookiebar.

tblumrich avatar tblumrich commented on June 1, 2024

Hallo! Also bei mir ist es https://www.maschinenbau-malchow.de/
Es wird jQuery genutzt, ja.
In meiner app/config/config.yml steht
contao_cookiebar: consider_dnt: false storage_key: ccb_contao_token page_templates: - fe_page iframe_types: youtube: - ce_youtube vimeo: - ce_vimeo googlemaps: - ce_html_googlemaps - mod_html_googlemaps

from contao-cookiebar.

OMOSde avatar OMOSde commented on June 1, 2024

Hi,

ich habe im Seitenlayout sowohl jQuery als auch Mootools aktiv. Wenn ich Mootools deaktiviere ist der Fehler weg. Ich habe außerdem testhalber in der Schleife mal folgende Code am Anfang eingefügt:

console.log(id);
continue;

Es ist nicht nur $family:

$family
$constructor
each
clone
clean
invoke
…

Scheinbar sind das von Mootools-Funktionen die an dem Array hängen und bei einem "for" mit behandelt werden. Bin aber jetzt kein JS-Crack.

Vielleicht auf cookiebar.settings.cookies.length testen? Der wäre dann bei mir immer 0. Das gibt aber scheinbar Folgefehler "forEach-…"

from contao-cookiebar.

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.