6 replies [Last post]
itqn2004's picture
Offline
Joined: 07/30/2008
Juice: 81
Was this information Helpful?

* 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

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15453
Re: expects exactly 1 parameter....error

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

itqn2004's picture
Offline
Joined: 07/30/2008
Juice: 81
Re: Re: expects exactly 1 parameter....error

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

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15453
Re: Re: Re: expects exactly 1 parameter....error

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

itqn2004's picture
Offline
Joined: 07/30/2008
Juice: 81
Re: Re: Re: Re: expects exactly 1 parameter....error

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.

cYu
cYu's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 11/19/2007
Juice: 852
Re: Re: Re: Re: Re: expects exactly 1 parameter....error

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.

itqn2004's picture
Offline
Joined: 07/30/2008
Juice: 81
Re: Re: Re: Re: Re: Re: expects exactly 1 parameter....error

Thank Ryan, cYu.