Webmastersite.net
Register Log In

Error when removing Alias cats from link

Comments on Error when removing Alias cats from link

webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Nov 19, 2007 - 4:50 AM:

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/onelink.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/adminend.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/templatefunctions.php on line 931


Hope you can help
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Nov 20, 2007 - 12:14 PM:

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
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 20, 2007 - 2:06 PM:

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?
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Nov 21, 2007 - 4:12 AM:

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
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 21, 2007 - 7:52 PM:

The {LINKBASEURL} was just in the link bit, or somewhere on the sumbit link page?
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Nov 22, 2007 - 11:20 AM:

Just in the link bit.

Thanks Paul
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 22, 2007 - 2:13 PM:

Unfortunately I still can't reproduce any problem putting that in my link bit and removing secondary categories. What URLs did these links have?
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Nov 22, 2007 - 2:29 PM:

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
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.