PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Warning: parse_url(/http:/domainname.com/) [function.parse-u

s2Member Plugin. A Membership plugin for WordPress®.

Warning: parse_url(/http:/domainname.com/) [function.parse-u

Postby lordjoshua » May 25th, 2011, 12:33 am

Hi - I am using s2member, and I am getting the following error on any post (pages are fine, just posts):

Warning: parse_url(/http:/domainname.com/) [function.parse-url]: Unable to parse URL in /home/content/29/4848629/html/domainname.com/wp-content/plugins/s2member/includes/classes/systematics-sp.inc.php on line 50

The error appears in the (s2) column and also under the ID. Please help! (I have modified the actual domain name to say "domainname" instead of the actual domain because the owner doesn't allow me to publish it here. (sorry.)

After publishing the post, the permalink is automatically:

Permalink: http://domainname.com/http:/domainname.com/

Does anyone know why this is happening to me?
User avatar
lordjoshua
Registered User
Registered User
 
Posts: 5
Joined: May 10, 2011

Re: Warning: parse_url(/http:/domainname.com/) [function.par

Postby Cristián Lávaque » May 25th, 2011, 1:18 am

That's weird, it's the first time I see that error mentioned.

Maybe re-installing the plugin does the trick. Follow this guide viewtopic.php?f=36&t=247
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Warning: parse_url(/http:/domainname.com/) [function.par

Postby lordjoshua » May 25th, 2011, 1:20 pm

So it turns out that this error appeared because of the way the admin set up the permalink.

The admin put in the following: http://domainname.com/ when the admin should have done something different.... it looks like it made s2member go into some kind of logic loop. perhaps you can benefit from learning about this bug which happens if someone puts in the "wrong" thing as the permalink...
User avatar
lordjoshua
Registered User
Registered User
 
Posts: 5
Joined: May 10, 2011

Re: Warning: parse_url(/http:/domainname.com/) [function.par

Postby Cristián Lávaque » May 25th, 2011, 7:19 pm

Oh ok. So he entered the blog URL instead of something like /%year%/%monthnum%/%day%/%postname%/? Got it.

Thanks for reporting it! I'll let Jason know about it, although it seems a problem with WordPress rather than s2Member.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Warning: parse_url(/http:/domainname.com/) [function.par

Postby Jason Caldwell » May 25th, 2011, 7:25 pm

Thanks. The development release suppresses errors with parse_url(), using @parse_url(). FYI: PHP v5.3 now supresses warnings generated by @parse_url() automatically because many people have complained about this. The function really should fail silently, but in PHP 5.2.x it does not.

Anyway, thanks for reporting this. Much appreciated!
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 5 guests

cron