Support » Plugin: Caldera Forms - More Than Contact Forms » Undefined offset: 0 in metabox.php on line 309

  • Resolved liambean

    (@liambean)


    I set up a frontend post pubishing with Caldera forms, Custom fields and Metaplate. Form includes image upload, but it is not to be saved as feature post in Processors > Save as Post Type. Instead, I display it with Metaplates settings in frond end.

    Debugging in config.php set as true

    Problem: error message in WP default admin post view “Notice: Undefined offset: 0 in /storage/h4/023/984023/public_html/wp-content/plugins/caldera-form-metabox/includes/metabox.php on line 309”

    Following errors occur in console of WP admin post view:

    Failed to load resource: the server responded with a status of 404 ()
    https://<domain>/wp-content/plugins/caldera-forms/assets/css/fields.min.css

    JQMIGRATE: Migrate is installed, version 1.4.1
    load-scripts.php:9

    Failed to load resource: the server responded with a status of 404 ()
    frontend-script-init.min.js

    2 Failed to load resource: the server responded with a status of 404 ()
    fields.min.js

    Failed to load resource: the server responded with a status of 404 ()
    frontend-script-init.min.js

    Uncaught ReferenceError: Parsley is not defined
    at ru.js:4
    ru.js:4

    Accessing the method ‘addValidator’ through ParsleyValidator is deprecated. Simply call ‘window.Parsley.addValidator(…)’
    warn @ caldera-forms-front.min.js:4
    caldera-forms-front.min.js:4

    Failed to load resource: the server responded with a status of 404 ()
    fields.min.css

    Furthermore, image is not included in the WP admin post view. However, it is displayed in the frontend of my website.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Josh Pollock

    (@shelob9)

    Thanks for using Caldera Forms.

    The form as metabox processor does not support uploading images from the WordPress admin. That only works when using the to post type processor in the front-end.

    The JavaScript errors you are showing are all fixed in Caldera Forms 1.5.0.5 by the way. You really should update to avoid that issue, which can effect form submissions.

    Josh thank you for prompt reply. You are right, but I still suspect you have a problem here.

    1. Undefined offset: 0 in includes/metabox.php on line 309 error occur after front-end uploading under any circumstances
    2. Setting “Add to Media Library” to unchecked produces an console error upon form submission “GET https://domain name/wp-content/uploads/2017/03/photo-30360.jpg 404 ()”
    3. Alternatively, setting “Add to Media Library” to checked stores two copies of uploaded image in Media library (one marked as “Uploaded <Post ttitle>”)

    Thanks for your time. BR

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Undefined offset: 0 in metabox.php on line 309’ is closed to new replies.