Skip to content

Issues with data meta fields with Advanced Custom Fields #186

@zzramesses

Description

@zzramesses

Hello. I'm getting this error when I try to create posts where I want to add data meta. I've tried different variations of the options and the error happens every time. I even deleted the plugin and reinstalled to be sure.

{
  "code": "qm_fatal",
  "message": "Uncaught Error: Class \"FakerPress\\Provider\\Chronos\" not found in /Users/blacksuperman/Local Sites/cal-epic/app/public/wp-content/plugins/fakerpress/src/FakerPress/Provider/WP_Meta.php on line 409",
  "data": {
    "message": "Uncaught Error: Class \"FakerPress\\Provider\\Chronos\" not found",
    "file": "/Users/blacksuperman/Local Sites/cal-epic/app/public/wp-content/plugins/fakerpress/src/FakerPress/Provider/WP_Meta.php",
    "line": 409,
    "trace": [
      {
        "function": "meta_type_date",
        "class": "FakerPress\\Provider\\WP_Meta",
        "type": "->",
        "args": [
          {
            "name": "this year",
            "min": "2025-01-01",
            "max": "2025-12-31"
          },
          "F j, Y",
          100
        ]
      },
      {
        "file": "/Users/blacksuperman/Local Sites/cal-epic/app/public/wp-content/plugins/fakerpress/vendor-prefixed/fakerphp/faker/src/Faker/Generator.php",
        "line": 685,
        "function": "call_user_func_array",
        "args": [
          [
            {
              "meta_object": {
                "name": "post",
                "id": 330
              }
            },
            "meta_type_date"
          ],
          [
            {
              "name": "this year",
              "min": "2025-01-01",
              "max": "2025-12-31"
            },
            "F j, Y",
            100
          ]
        ]
      },
      {
        "file": "/Users/blacksuperman/Local Sites/cal-epic/app/public/wp-content/plugins/fakerpress/vendor-prefixed/fakerphp/faker/src/Faker/Generator.php",
        "line": 911,
        "function": "format",
        "class": "FakerPress\\ThirdParty\\Faker\\Generator",
        "type": "->",
        "args": [
          "meta_type_date",
          [
            {
              "name": "this year",
              "min": "2025-01-01",
              "max": "2025-12-31"
            },
            "F j, Y",
            100
          ]
        ]
      },
      {
        "function": "__call",
        "class": "FakerPress\\ThirdParty\\Faker\\Generator",
        "type": "->",
        "args": [
          "meta_type_date",
          [
            {
              "name": "this year",
              "min": "2025-01-01",
              "max": "2025-12-31"
            },
            "F j, Y",
            100
          ]
        ]
      },
      {
        "file": "/Users/blacksuperman/Local Sites/cal-epic/app/public/wp-content/plugins/fakerpress/src/FakerPress/Module/Meta.php",
        "line": 145,
        "function": "call_user_func_array",
        "args": [
          [
            {},
            "meta_type_date"
          ],
          [
            {
              "name": "this year",
              "min": "2025-01-01",
              "max": "2025-12-31"
            },
            "F j, Y",
            100
          ]
        ]
      },
      {
        "file": "/Users/blacksuperman/Local Sites/cal-epic/app/public/wp-content/plugins/fakerpress/src/FakerPress/Module/Post.php",
        "line": 226,
        "function": "generate",
        "class": "FakerPress\\Module\\Meta",
        "type": "->",
        "args": []
      },
      {
        "file": "/Users/blacksuperman/Local Sites/cal-epic/app/public/wp-content/plugins/fakerpress/src/FakerPress/Ajax.php",
        "line": 83,
        "function": "parse_request",
        "class": "FakerPress\\Module\\Post",
        "type": "->",
        "args": [
          5,
          {
            "view": "posts",
            "qty": {
              "min": "5",
              "max": ""
            },
            "interval_date": {
              "name": "last 15 days",
              "min": "2025-06-07",
              "max": "2025-06-22"
            },
            "post_types": "training",
            "post_parent": "",
            "comment_status": "",
            "author": "",
            "content_size": {
              "min": "5",
              "max": "15"
            },
            "html_tags": "h1,h2,h3,h4,h5,h6,ul,ol,div,p,blockquote,img,hr,!--more--",
            "images_origin": "placeholder_image,lorempicsum",
            "excerpt_size": {
              "min": "1",
              "max": "3"
            },
            "taxonomy": [
              {
                "taxonomies": "training_type",
                "terms": "",
                "rate": "100",
                "qty": {
                  "min": "1",
                  "max": ""
                }
              }
            ],
            "meta": [
              {
                "type": "attachment",
                "name": "_thumbnail_id",
                "store": "id",
                "provider": "placeholder_image,lorempicsum",
                "weight": "90",
                "width": {
                  "min": ""
                },
                "height": {
                  "min": ""
                }
              },
              {
                "type": "date",
                "name": "start_date",
                "interval": {
                  "name": "this year",
                  "min": "2025-01-01",
                  "max": "2025-12-31"
                },
                "format": "F j, Y",
                "weight": "100"
              }
            ]
          }
        ]
      },
      {
        "file": "/Users/blacksuperman/Local Sites/cal-epic/app/public/wp-includes/class-wp-hook.php",
        "line": 324,
        "function": "module_generate",
        "class": "FakerPress\\Ajax",
        "type": "::",
        "args": [
          ""
        ]
      },
      {
        "file": "/Users/blacksuperman/Local Sites/cal-epic/app/public/wp-includes/class-wp-hook.php",
        "line": 348,
        "function": "apply_filters",
        "class": "WP_Hook",
        "type": "->",
        "args": [
          "",
          [
            ""
          ]
        ]
      },
      {
        "file": "/Users/blacksuperman/Local Sites/cal-epic/app/public/wp-includes/plugin.php",
        "line": 517,
        "function": "do_action",
        "class": "WP_Hook",
        "type": "->",
        "args": [
          [
            ""
          ]
        ]
      },
      {
        "file": "/Users/blacksuperman/Local Sites/cal-epic/app/public/wp-admin/admin-ajax.php",
        "line": 192,
        "function": "do_action",
        "args": [
          "wp_ajax_fakerpress.module_generate"
        ]
      }
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions