Attempting to add invoice items is producing the following error:
warning: urlencode() expects parameter 1 to be string, array given in /path_to_my_storm/storm.module on line 322.

Any thoughts? I'm running a fairly plain install, however using Organic Groups module.

Comments

Roberto Gerola’s picture

I tried the dev version and I a not able to reproduce.
Could you post here the url of the page that is creating this issue ?
The part after the hostname will be enough, thanks.

tedhattemer’s picture

?q=node/236/invoiceitems&type=storminvoiceitem&gids[]=116

Roberto Gerola’s picture

Ok, it is OG : &gids[]=116

I have to investigate this.

Thanks, Roberto

tedhattemer’s picture

I upgraded OG to the latest version and the problem still persists. Here is some status info:

Drupal 5.7
Configuration file Protected
Cron maintenance tasks Last run 29 min 6 sec ago
You can run cron manually.
Database schema Up to date
File system Writable (public download method)
GD library bundled (2.0.34 compatible)
Job queue There are no queued jobs.
MySQL database 5.0.45
PHP 5.2.5
PHP register globals Disabled
SimplePie Parser Installed correctly
The current installed version of SimplePie is 1.1.1
Unicode library PHP Mbstring Extension
Web server Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.7l DAV/2 PHP/5.2.5 mod_fastcgi/2.4.2

Roberto Gerola’s picture

Just committed a fix on cvs.
Download from cvs the storm.module file.

Let me know if it works for you.
Thanks, Roberto.

tedhattemer’s picture

warning: Invalid argument supplied for foreach() in /Volumes/Web/Site/test/modules/storm/storm.module on line 519.

Still getting an error message. Sorry so late in responding.

Roberto Gerola’s picture

Ok, committed a fix.
Not sure it solves. I'm not able to reproduce this.

Let me know

Thanks, Roberto

tedhattemer’s picture

The script is no longer producing an error while adding invoice items. However it's not producing an fields either now.
Here is the HTML from "view source." It's blank under the header row (View, Edit, Workflow, Invoice Items)


 <!-- begin mainContent -->
      <div id="mainContent" style="width: 710px;">

        
                <div class="breadcrumb"><div class="breadcrumb"><a href="/index.html/">Home</a></div></div>        <h1 class="pageTitle">View</h1>        <div class="tabs"><ul class="tabs primary">
<li><a href="/index.html/?q=node/259">View</a></li>
<li><a href="/index.html/?q=node/259/edit">Edit</a></li>
<li><a href="/index.html/?q=node/259/workflow">Workflow</a></li>
<li class="active"><a href="/index.html/?q=node/259/invoiceitems" class="active">Invoice items</a></li>
</ul>
</div>                                <table>

 <thead><tr><th>Title</th><th style="text-align: center;">Amount</th><th style="text-align: center;">VAT</th><th style="text-align: center;">Total</th><th class="storm_list_operations"><a href="/index.html/?q=node/add/storminvoiceitem&amp;destination=node%2F259%2Finvoiceitems&amp;type=storminvoiceitem&amp;gids[0]=116&amp;destination=node%2F259%2Finvoiceitems&amp;organization_nid=222&amp;project_nid=223&amp;invoice_nid=259" title="Add"><img src="/index.html/modules/storm/icons/application_add.png" alt="Add" title="Add" /></a></th> </tr></thead>
<tbody>
</tbody></table>
                
      </div><!-- end mainContent -->

flickerfly’s picture

@tedhattemer: Is this still an issue or can it be marked closed?

Magnity’s picture

Status: Active » Closed (won't fix)

Development has stopped on the 5.x branch (see #410784: Looking for a new maintainer), so I am marking this as "Won't Fix".

If the issue also affects the 6.x branch please reopen under that category.