Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Using drupal 7.10, when I attach the xls feed to "page" I get the following errors:
Notice: Array to string conversion in rdf_preprocess_image() (line 772 of /var/www/html/modules/rdf/rdf.module).
Recoverable fatal error: Argument 1 passed to drupal_attributes() must be an array, string given, called in /var/www/html/includes/theme.inc on line 1657 and defined in drupal_attributes() (line 2263 of /var/www/html/includes/common.inc).
The website encountered an unexpected error. Please try again later.
When I attach it to "Master" there is no error but there is no 'export to xls' button either.
Comment | File | Size | Author |
---|---|---|---|
#2 | views_excel_export-array_to_string_conversion-1431890-2.patch | 717 bytes | AaronELBorg |
#1 | views_excel_export-array_to_string_conversion-1431890-2.patch | 717 bytes | AaronELBorg |
Comments
Comment #1
AaronELBorg CreditAttribution: AaronELBorg commentedOK. Made a patch. I think it was due to d7's theme function being a bit more finicky in terms of what it needs. Mine's working with it anyway. Yahoo.
EDIT: Crap! I didn't realize that the initial report isn't the first comment. Therefore, my patch should end with "1.patch" and not "2.patch". Sorry about that.
Comment #2
AaronELBorg CreditAttribution: AaronELBorg commentedI'm gonna upload the same patch again in this comment just to reduce any possible confusion with the comment ordering. My apologies for any confusion.
NOTE: Both patches in comment #1 and #2 are exactly the same.
Comment #3
TommyChrisThe patch works!
Comment #4
stefandenhartog CreditAttribution: stefandenhartog commentedI get this error when I execute this statement:
theme('image', drupal_get_path('module', 'uc_own_shoppingcart') . '/images/cart.png');
Notice: Array to string conversion in rdf_preprocess_image() (line 775 of C:\Users\stefandh\Documents\My Web Sites\Drupal 7.2 Developer release1\modules\rdf\rdf.module).
Recoverable fatal error: Argument 1 passed to drupal_attributes() must be an array, string given, called in C:\Users\stefandh\Documents\My Web Sites\Drupal 7.2 Developer release1\includes\theme.inc on line 1521 and defined in drupal_attributes() (line 2259 of C:\Users\stefandh\Documents\My Web Sites\Drupal 7.2 Developer release1\includes\common.inc).
Just downloaded the last version of Drupal (because Updating doesn't work for me, but that's another problem.) and copied the rdf directory but that doesn't seem to change a thing.
Comment #5
AaronELBorg CreditAttribution: AaronELBorg commentedAfter making that patch above, I was occasionally getting random warnings about $filename being undefined so I changed lines 17-19 of 'views-export-xls-view-xls.tpl.php' from
to
Anyone else getting these? If so, I'll roll another patch with that included. Kinda busy at the moment but thought I'd mention it.
Comment #6
AaronELBorg CreditAttribution: AaronELBorg commentedstefandenhartog,
Did you try the patch? Sounds like you should.
Comment #7
stefandenhartog CreditAttribution: stefandenhartog commentedAaronELBorg I am not connected to the GIT repository right now so i don't believe I can patch the project.
I tried searching for the change manually (and I have updated Drupal to the version of 24 feb.)
but I can't even find the views-export-xls-view-xls file :(
Comment #8
AaronELBorg CreditAttribution: AaronELBorg commentedstefandenhartog,
views_export_xls_plugin_style_xls.inc is somewhere inside the views_export_xls directory (It depends on your setup but probably in sites/all/modules?). I'm not in front of the project at the moment so you'll have to dig around to find it.
Since this isn't a core issue I don't think updating your version of drupal is really gonna help. Well.....this issue anyway.
The patch isn't all that intensive so you should be able to do it manually if need be.
Comment #9
marcusx CreditAttribution: marcusx commentedComment #10
creaoy CreditAttribution: creaoy commentedCommited patch #2 33ba0be
Comment #11
creaoy CreditAttribution: creaoy commented