logo
WSN Links PHP Directory Software
Features Showcase Reviews Demos Purchase Manual Support
 

Error when removing Alias cats from link

Version:


Error when removing Alias cats from link
jayweb
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 37
Total Posts: 112
Posted 11/19/07 - 02:50 AM:
quote post
#1
Hello I am using the very latest version of WSN links.
Sorry I dont know the version number off hand so I could not fill that in.


Anyway I have a few problems...

Firstly, if a member has added secondary categories to thire listing, and then I go in and remove some of the secondary categories because I dont think they are appropriate, I get the following error message on category pages right after i edit he link...

Warning: parse_url(http://) [function.parse-url]: Unable to parse url in /home/sites/click4localbusiness.co.uk/public_html/classes/on elink.php on line 1106

Secondly, I am no longer able to "regenerate everything". Part way through I get...

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 184320 bytes) in /home/sites/click4localbusiness.co.uk/public_html/admin/admi nend.php on line 183


Finally, I get the following when trying to access the "general settings" page in my admin panel...

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 358815 bytes) in /home/sites/click4localbusiness.co.uk/public_html/includes/t emplatefunctions.php on line 931


Hope you can help
jayweb
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 37
Total Posts: 112
Posted 11/20/07 - 10:14 AM:
quote post
#2
Anyone any idea how I can resolve the "regenerate everything" issue I mention above? Its been rather a long ime since I regenerated and doin it one thing at a tme does not seem to do everything regenerate everthing does.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 11/20/07 - 12:06 PM:
quote post
#3
There are two ways to deal with out of memory errors on regenerating:
1) Do fewer items at a time.
2) Increase the allowed memory in php.ini. 16M is a good size. You have 8M.

For the general settings page, that's odd... it's using less than 6MB for me. I suppose on PHP 4 it might use noticably more. If you're stuck on PHP4 a memory limit increase may be necessary.

Warning: parse_url(http://) [function.parse-url]: Unable to parse url in /home/sites/click4localbusiness.co.uk/public_html/classes/on elink.php on line 1106

This suggests that {LINKBASEURL} is being used somewhere. I'm not using it and I don't see the error. In what way are you using it? And what URL is it for that link?

Edited by Paul on 11/20/07 - 12:11 PM
jayweb
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 37
Total Posts: 112
Posted 11/21/07 - 02:12 AM:
quote post
#4
Thanks Paul. I increased the memory limit in php.ini to 32M, 16 would have been enough but I thought I might as well go higher. That completely fixed the access to general settngs problem and the Generate everything problem.

I was indeed using {LINKBASEURL} and that was the the problem. I have now fixed that.

So yet again your advice is right on the money.

Thanks Paul
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 11/21/07 - 05:52 PM:
quote post
#5
The {LINKBASEURL} was just in the link bit, or somewhere on the sumbit link page?
jayweb
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 37
Total Posts: 112
Posted 11/22/07 - 09:20 AM:
quote post
#6
Just in the link bit.

Thanks Paul
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 11/22/07 - 12:13 PM:
quote post
#7
Unfortunately I still can't reproduce any problem putting that in my link bit and removing secondary categories. What URLs did these links have?
jayweb
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 37
Total Posts: 112
Posted 11/22/07 - 12:29 PM:
quote post
#8
I was using {LINKBASEURL[nohttp]} to be specific. I was using this to show link owners the URL they hae submitted, telling them the benefits of upgrading to a featured listing.

If was happening with lots of listings after editing (removing alias categories).

However, because I do not offer a link to all of my users (a link comes with upgrade only) I have since discovered that it was listings that had not filled in a URL that were causing the problem.

Which I guess makes sense because the variable was looking for a URL and stripping the http://, but in the database, after I edited, the URL was http://followed by nothing.

Search thread for
Download thread as


You don't have permission to post.

Please login or register.

Admin Control Panel

   
Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support
© 2008 Paul Knierim. All rights reserved.