CSV Export Not Functioning Properly

By HDLLC - February 18, 2019

Hi All-  

I am running CMS Builder v3.10 (Build 2139)
CSV Export1.04

Everything activates, but I can't get it to actually export...

I am trying to get it to export from a simplecart order admin view, and it has related tables attached.
I don't need the related tables, just the order info.

When I select to "export selected records", the "go" button does nothing...

I get nothing happening.  No dialog, no error - just nothing.
Same for "all records" - I get same response.

In fact, I tried this just now on a section with one record, in a table with one entry...  

Same response.  Just does nothing.

Any ideas?

Thanks!

--Jeff

By daniel - February 18, 2019

Hi Jeff,

Can you check the Developer Log under Admin Menu and let me know if any errors pop up there when you try to use the export?

Thanks!

Daniel
Technical Lead
interactivetools.com

By HDLLC - February 19, 2019

Nothing logging there.

It's really just like I have a dead button on "go", and it's on every page within the CMS admin.

That command doesn't perform anything for me.

Not just CSV, but code generator - all options in the drop-down menu.

I don't really use that, so the CSV export test was the first time I've tried in really ever.

Any other ideas?

Thanks!

--Jeff

By daniel - February 19, 2019

Hi Jeff,

It sounds like there is likely a JavaScript error occurring on your admin pages, preventing the Advanced Commands dropdown from working. A quick way that you can check this is with your browser's Developer Console. To do this:

  1. Navigate to a page with the dropdown
  2. Press "F12"
  3. In the window that pops up, make sure that the "Console" tab is active
  4. Reload the page. Note any errors that appear.
  5. Try using the dropdown. Note any additional errors.

(Note: Screenshots are very helpful when reporting errors)

My first instinct is that this may require updating CMSB, however, if you're able to report any errors this will help confirm if this is the case, and/or let me suggest alternate or short-term solutions.

Thanks,

Daniel
Technical Lead
interactivetools.com

By HDLLC - February 19, 2019

I don't have F-Keys - Mac guy here...  lol

Here's the console for javascript.
Whatcha think?

By daniel - February 19, 2019

Hi Jeff,

I don't have F-Keys - Mac guy here...  lol

Sorry, oversight on my part!

Your screenshot does show the developer console, so if you're able to open that and then follow steps 3-5, that should show me what I need.

Thanks!

Daniel
Technical Lead
interactivetools.com

By HDLLC - February 21, 2019

Okay - I selected code generator and then CSV export.

Results are attached.  I think this is what you need.  Hoping...

Thanks!
--Jeff

By daniel - February 21, 2019 - edited: February 21, 2019

Hi Jeff,

Yes, those screenshots are exactly what I was looking for! As I had suspected, this is a JavaScript error present in some older versions of CMSB. If you're able to, I'd recommend updating to the latest version. However, as it's a simple issue to fix, it's also possible to perform the fix manually as a short-term solution. To do this, open /cmsb/lib/admin_functions.php and locate the following code (on/near line 814):

$("button[name='_advancedActionSubmitButton'").parents("form:first").submit();

Replace it with the following (adds a missing "]"):

$("button[name='_advancedActionSubmitButton']").parents("form:first").submit();

Let me know if you're able to resolve the issue, or have any more questions!

Thanks,

Daniel
Technical Lead
interactivetools.com

By HDLLC - February 21, 2019

Thanks a million, Daniel!  

That fixed it up!

Thanks again!

--Jeff