expects exactly 1 parameter....error

Posts: 20
Joined: 07/30/2008

* warning: parse_url() expects exactly 1 parameter, 2 given in /sites/all/modules/ubercart/uc_store/uc_store.module on line 2925.

please help me

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Do a site search on parse_url. There are several threads dealing w/ the issue (which is resolved in the next release).

Posts: 20
Joined: 07/30/2008

Do a site search on parse_url.
How to make it?.I am student newly learn Ubercart.
Thank.

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Sorry, I was a little ambiguous... Use the search box here on Ubercart.org. Smiling

Posts: 20
Joined: 07/30/2008

I gave up // Check the user didn't shamelessly two-time us with another site.
// if (parse_url($http_referer, PHP_URL_HOST) != $_SERVER['SERVER_NAME']) {
// return FALSE;
// }
it and it did not shows error.

Posts: 301
Joined: 11/19/2007
Bug FinderGetting busy with the Ubercode.

Youch, that was pretty quick for you to give up. That is not very conducive to working with open source.

Using the search box on the top right of the site and searching for parse_url as Ryan suggested would have taken you pretty quickly to
http://www.ubercart.org/comment/22542/Re_Strange_parse_url_error where you would have seen the problem and solution. Randomly commenting out lines of code is generally not a good idea.

Posts: 20
Joined: 07/30/2008

Thank Ryan, cYu.