Coder Social home page Coder Social logo

Warning beim indexieren about search_it HOT 7 OPEN

tbaddade avatar tbaddade commented on July 24, 2024
Warning beim indexieren

from search_it.

Comments (7)

tyrant88 avatar tyrant88 commented on July 24, 2024

kannst du bitte mal die Zeile 831
ändern in
$plaintext = $this->getPlaintext($indexData['unchangedtext']);
und dann berichten, ob der Fehler weg ist?

from search_it.

tbaddade avatar tbaddade commented on July 24, 2024

Fehler ist nach der Änderung immer noch vorhanden.

from search_it.

tyrant88 avatar tyrant88 commented on July 24, 2024

Dann vielleicht
$plaintext = $this->getPlaintext($indexData['unchangedtext']) ?? '';
Hast du das plaintext-Plugin im Einsatz?

from search_it.

tbaddade avatar tbaddade commented on July 24, 2024

Dann vielleicht
$plaintext = $this->getPlaintext($indexData['unchangedtext']) ?? '';

Das wird nicht helfen … $plaintext ist vor dem Array gefüllt. preg_split liefert in der foreach jedoch false, sodass die Warning erscheint.

Hast du das plaintext-Plugin im Einsatz?

Nein

from search_it.

tyrant88 avatar tyrant88 commented on July 24, 2024

dass preg_split false liefert, hielt ich für unwahrscheinlich (passiert ja nur bei einem regex-error).
Wenn du weißt, dass plaintext gefüllt ist, kannst du es auch dumpen?
Ich könnte zwar den preg_split-Ausdruck auf !== false testen, aber da verliert man ja was, wenn dein $plaintext nicht null ist..

from search_it.

tbaddade avatar tbaddade commented on July 24, 2024

Wenn ich diese Zeile lösche, dann klappt jedes preg_split.

Weshalb die Zeile mit html_entity_decode? Die Tags scheinen in der Methode noch vorhanden zu sein, da diese eine Zeile vorher via strip_tags gelöscht werden. Weshalb das Konvertieren von Entities zurück zu HTML Tags?

from search_it.

tyrant88 avatar tyrant88 commented on July 24, 2024

ohne das decode könnte im String z.B. ein © stehen. da würde das preg_split dann das "copy" als keyword rausholen...

from search_it.

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.