parse_url(http://) [function.parse-url]: Unable to parse URL in /usr/home/hoslo/public_html/sites/all/modules/seo_friend/seo_friend.module on line 776.
parse_url(http://) [function.parse-url]: Unable to parse URL in /usr/home/hoslo/public_html/sites/all/modules/seo_friend/seo_friend.module on line 776.
Comments
Comment #1
kristen polI just checked in some code that checks the url field before calling parse_url. I checked it into dev, so please test once the drupal cron has updated that today.
Thanks,
Kristen
Comment #2
Starminder commentedHi - for me it started displaying the report, but in the end it still hangs and locks up.
Comment #3
kristen polDoes it give the same error or just hang?
Kristen
Comment #4
Starminder commentedIt hangs and eventually crashes the browser (Firefox). Nothing in the log about it though.
Comment #5
kristen polHmm... sounds like a memory problem. What's you php.ini setting?
Kristen
Comment #6
Starminder commentedSorry - missed this. Looks like I'm at 256M. I tried to override it with Drupal Tweaks but no luck.
Comment #7
kristen polIf you are comfortable changing the code, edit your seo_friend.module file and change line #784 from:
$limit = 200000;
to
$limit = 10000;
(or something "small") and see if it stops hanging. I imagine there is just too much data. I'm wondering how I should best deal with this type of situation.... just keep number pretty small, make it configurable, get rid of the report, ???
Kristen
Comment #8
kristen polComment #9
Starminder commentedI confirmed it was still hanging/crashing with 200000. Changed limit to 10000 and it works great. Thanks!!
Comment #10
kristen polThanks for testing. I will add an admin setting so that number can be tweaked.
Kristen
Comment #11
kristen polI just checked in changes to dev so that you can set this max limit number in the admin settings:
[yourdomain/admin/content/seo_friend/default
at the bottom of the form.
If you want to try that out, you can play with the numbers.
Kristen
Comment #12
Starminder commentedThat seems to work well, thanks!
Comment #13
kristen polAwesome, I'll close this.
Kristen