Giter VIP home page Giter VIP logo

Comments (8)

bloatware avatar bloatware commented on June 3, 2024

Are you the lucky one, just to be sure?

from textpattern.

rwetzlmayr avatar rwetzlmayr commented on June 3, 2024

I am not sure at all, sorry. Investigating.

I am currently rebuilding my dev setup and suddenly out of the blue this error appeared. First, I blamed XDEBUG, then I found this thread and now I'm a bit confused what really happens...

My php.ini contains the line ;extension=intl with a prefix comment. I am running XAMPP like testdeputy here.

My phpinfo() reports this no matter whether I enable or disable ;extension=intl in the php.ini file :

intl

Internationalization support enabled
ICU version 73.2
ICU Data version 73.2
ICU TZData version 2023c
ICU Unicode version 15.0

Confusing... Any help very appreciated.

from textpattern.

bloatware avatar bloatware commented on June 3, 2024

Theoretically, txp calls strftime() only if it has no other choice:

  • the date format includes a localized string (month name etc)
  • intl extension is not enabled

Have you tried to uncomment extension=intl (and restart the server)?

from textpattern.

rwetzlmayr avatar rwetzlmayr commented on June 3, 2024

Yes, I have (un)commented the php.ini line regarding extension intl. Didn't help at any state.

I now changed the Archive date format in Preferences to %Y-%m-%d, and then back to the previous pattern %b %d, %I:%M %p which it had when the error popped up. The error vanished. Misterioso.

from textpattern.

bloatware avatar bloatware commented on June 3, 2024

If it's on a remote server, there is sometimes a lag after settings change. Or a cache issue. Otherwise no clue.

from textpattern.

rwetzlmayr avatar rwetzlmayr commented on June 3, 2024

I am working on my local machine.

And now the error has reappeared without me doing anything. It looks like it depends on the $whatever. Time to close the lid it seems. Heisenbug.

from textpattern.

bloatware avatar bloatware commented on June 3, 2024

Is class_exists('IntlDateFormatter') misbehaving somehow?

from textpattern.

rwetzlmayr avatar rwetzlmayr commented on June 3, 2024

class_exists('IntlDateFormatter') returns false correctly in situations when the error pops up.
After good night's sleep and definitely uncommenting extension=intl in php.ini the error does not occur any more.
Looks like PEBKAC. Sorry for the confusion.

from textpattern.

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.