• Resolved Tony Roberts

    (@tonyrobertsacer)


    Hi,

    I am trying to use the ‘Export the value returned by a PHP function’ feature to unserialize data on export using the maybe_unserialize php function.

    The preview unserializes the fields properly, but in the export file the fields are blank.

    Have I done something wrong or is this a bug?

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

    (@vjinfotech)

    Hi,

    Thanks for getting in touch.

    unserialize gives array as output and csv not supported array format. So i suggest change back to other format like json format or other format

    Let me know if you have any questions

    Thanks and have a nice day

    Thread Starter Tony Roberts

    (@tonyrobertsacer)

    Thanks very much for the super fast reply!

    I’ve tried all formats, actually, and none export this data. json, xls, xlsx, csv, and ods contain blank fields, the XML drops them (because they are empty). I put “maybe_unserialize” into the “Export the value returned by a PHP function” field.

    The field data in preview without “maybe_unserialize” set (note that this is what exports) is as follows:

    a:1:{i:0;s:9:”Australia”;}

    Here is the same field in preview with “maybe_unserialize” set:

    Australia

    • This reply was modified 3 years, 1 month ago by Tony Roberts.
    Plugin Author vjinfotech

    (@vjinfotech)

    Hi,

    please mail me on [email protected] with your issue with details. i will guide you as soon as possible

    let me know if you still have any questions.

    Thanks and have a nice day

    Thread Starter Tony Roberts

    (@tonyrobertsacer)

    Thanks very much. I did mail you on 24 April 2023 and then again on 5 May 2023 but haven’t had a reply. Are you able to confirm you received my emails?

    Plugin Author vjinfotech

    (@vjinfotech)

    Hi,

    Sorry for late reply.

    I have checked we received your all mails.

    we give you update soon

    Thanks

    Thread Starter Tony Roberts

    (@tonyrobertsacer)

    Hi, any further update? We want to buy the pro version for our sites to get the ACF compatibility, but not if we can’t deal with serialized fields.

    Thanks,

    Tony

    • This reply was modified 2 years, 12 months ago by Tony Roberts.
    Thread Starter Tony Roberts

    (@tonyrobertsacer)

    Hi,

    I’ve been thinking about this issue, and have uncovered the issue. While reviewing the features in the pro version (per my post, above) I noticed that ACF support is included. The fields that aren’t correctly unserializing are ACF fields.

    We’ve just purchased the pro plugin, and they are unserializing as expected.

    Apologies for this, and FYI in case anyone else comes across a similar issue.

    Cheers,
    Tony

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

The topic ‘Export the value returned by a PHP function: maybe_unserialize’ is closed to new replies.