• Resolved Joshua Fredrickson

    (@joshf)


    Depending on different options I select, I’m receiving different fatal errors in the latest version. These issues don’t exist if I roll back to FakerPress 0.6.6.

    count(): Argument #1 ($value) must be of type Countable|array, string given in /plugins/fakerpress/src/FakerPress/Admin/View/Post_View.php: 76
    Call to undefined function FakerPress\Provider\newChronos() in /plugins/fakerpress/src/FakerPress/Provider/WP_Post.php:60

    FakerPress 0.7.0
    WordPress 6.8.1
    PHP 8.3

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Gustavo Bordoni

    (@bordoni)

    Thank you so much!

    I am working on a new version, it should be available in the next 30 minutes.

    Thank you for the prompt report.

    Thread Starter Joshua Fredrickson

    (@joshf)

    You’re quick! Appreciate the plugin!

    Plugin Author Gustavo Bordoni

    (@bordoni)

    Launched versions 0.7.1 and followed up with 0.7.2; All problems shoudl be fixed, please let me know if that is not the case.

    Regan Khadgi

    (@regankhadgi)

    Hello @bordoni

    It seems the issue is still available in the php version 8.4. When the plugin is active, the site gets down and gives the below error message.

    Fatal error: Declaration of FakerPress\ThirdParty\Cake\Chronos\Traits\FactoryTrait::createFromTimestamp(int $timestamp, $tz = null): FakerPress\ThirdParty\Cake\Chronos\ChronosInterface must be compatible with DateTimeImmutable::createFromTimestamp(int|float $timestamp): static in /Applications/mamp/htdocs/karuna-lesson/wp-content/plugins/fakerpress/vendor-prefixed/cakephp/chronos/src/Traits/FactoryTrait.php on line 339

    I replaced it with below code and got fixed

    public static function createFromTimestamp(int|float $timestamp): static

    Thanks.

    karlmevans

    (@karlmevans)

    Any further updates coming with the above fix for PHP8.4?

    Plugin Author Gustavo Bordoni

    (@bordoni)

    Working on that problem, just want to make sure I caught all the problems related to 8.4+

    Sorry for the long wait there.

    Plugin Author Gustavo Bordoni

    (@bordoni)

    @karlmevans @regankhadgi

    Updated the plugin with version 0.8.0 that solves the problem.

    Best Regards,

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Multiple fatal errors in 0.7.0’ is closed to new replies.