PHP Fatal Error – Call to afm() in html-bulk-edit-product.php template

MultivendorX Pro

Resolved
Viewing 4 reply threads
  • Author
    Posts
    • #187539
      Justin Harrison
      Participant

      Hi support, I got around this by editing the template directly, but when I called the filter ‘afm_exclude_bulk_edit_taxonomies’, it crashed the vendor dashboard. The error log shows this:

      PHP Fatal error: Uncaught Error: Call to undefined function afm() in /home/xxxxxxxxx/public_html/wp-content/themes/fpa-theme/mvx-pro/bulk-actions/html-bulk-edit-product.php:32

      It looks like afm() is still being used instead of another function (or global) since updating to MultivendorX here:

      afm()->template->get_template( ‘products/metabox/html-taxonomy-metabox.php’, array( ‘product_id’ => null, ‘product_taxonomy’ => $product_taxonomy ) );

      This not urgent as I just went and pulled the html-taxonomy-metabox.php code and pasted it directly into the html-bulk-edit-product.php template in my theme, but I wanted to report the error for fixing.

      Thank you!

    • #187591

      Hi,
      In per our new product (MultivendorX and MultivendorX pro) version the afm() function is deprecated.
      Kindly let us know what do you actually want. So we give you proper suggestion or code.

      Regards,

    • #187631
      Justin Harrison
      Participant

      I must have been on an older version that I was using because afm() function was being called in html-bulk-edit-product.php. In the the last 2 versions, it was fixed, so nothing needed here. Thank you.

    • #187643

      You are welcome 🙂

    • #192206

      It’s been a while and we have not heard back from you . We presume your query is solved. We are closing this thread . If you face issue in future please open a new thread .

Viewing 4 reply threads

The topic ‘PHP Fatal Error – Call to afm() in html-bulk-edit-product.php template’ is closed to new replies.