I recently upgraded to the latest stable version. However, ever since upgrading, I am facing some problems. The first issue I faced was with the length of title link which I fixed by increasing the size of the field. Other issue is about the error below -

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in forena_format_form() (line 264 of /home/xyz/public_html/sites/all/modules/forena/forena.admin.inc).

Warning: Invalid argument supplied for foreach() in form_select_options() (line 2675 of /home/xyzi/public_html/includes/form.inc).

I can't see anything in the default skin dropdown field either. Please help.

Comments

Pierre.Vriens’s picture

Component: Miscellaneous » Documentation
Status: Active » Needs review

Basant, I was able to recreate the same 2 warnings, and your empty dropdown list. In my case it happened after upgrading forena from a 7.x-2.x version to 7.x-3.11. I documented what I think is the problem in your case also, in the attachment I added to https://drupal.org/node/2120833 . The relevant part in that attachment there is this:

=== start ===

This warning appears because the value for Default report skin on the forena configuration screen (on the general tab) is empty (blank). What is worse: you can't select any Default report skin from the drop-down list there because it is entirely empty (also ...).

To resolve this (so that the drop-down list is no longer empty), 2 actions are needed (in the order specified):

1) Create a skin file (use any filename ending with .skinfo) in the root of the directory in the Report Repository, e.g. by cloning it from the default_skin.skinfo located in the repos/reports subfolder of the forena module directory (using the same filename is fine). If you prefer to not do so manually, and it's OK for you to Revert all delivered reports to original (which will cause all customizations to module delivered reports to get lost, if they were customized in the prior forena release), then simply check the checkmark in front of "Revert all delivered reports to orignial" on the forena structure screen. This will also copy the default_skin.skinfo to the root of the directory in the Report Repository.

2) hit the clear cache button on the forena structure screen.

=== stop ===

As also documented now in the same attachement, I'm pretty sure your other warning will disappear automatically (magically?) after you resolved the other warning.

Please get back with an update about this (if it indeed solves your issue also).

Regarding the "length of the title link": could you be more specific on that (what the actual issue was, and how exactly you solved it)?

PS to 'Maestro' David: please correct / complement (about what I wrote above or what is in my attachment I referred to) where appropriate.

crankyhippo’s picture

I upgraded to 3.12, encountered the same exact error above and did as Pierre instructed.

One minor sticking point, because i am not familiar with all the forena pages, was the "structure page". go to Structure > Forena Reports.

thanks for the great documentation.

metzlerd’s picture

You'll be happy to know that this has been address in the 7.x-4.x development release. That is, the "Revert" step will be required one last time when you get to 7.x-4.x and then no more.

metzlerd’s picture

Issue summary: View changes
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.