Closed (fixed)
Project:
Boost
Version:
6.x-1.0-alpha1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
26 Oct 2008 at 07:55 UTC
Updated:
2 Jan 2014 at 23:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Arto commentedComment #2
mustafau commentedSubscribe.
Comment #3
SteffenMaass commentedThe Patch containing the code above is attached.
Regards,
Steffen
Comment #4
mikeytown2 commentedTested and patch gets rid of error
Comment #5
kenorb commentedWorked in my case.
Comment #6
liliplanet commentedHi,
I've changed the following in boost.module:
but still getting error:
mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in /home/mysite/public_html/includes/database.mysqli.inc on line 323.Did I patch the boost.module incorrectly?
Most appreciate any help, and thank you.
Lilian
Comment #7
kenorb commentedYes, you should add this line into boost_cache_set($path, $data = '') function
Comment #8
liliplanet commentedThank you KenorB for your quick reply.
Unfortunately now I get:
Parse error: syntax error, unexpected '}' in /home/mysite/public_html/sites/all/modules/boost/boost.module on line 410
I'm sure so close :), but at the moment no go ..
Thank you again.
UPDATE: I removed the } and now site back up. Will report back if any errors. Thank you so much!
Comment #9
kenorb commentedProbably you copied manually patch content with the bracket, or patch has been applied to the wrong place (because there is no much information about placement and previous lines).
Comment #10
liliplanet commentedplease ignore ..
Comment #11
liliplanet commentedOops, have a new problem now when cron runs ..
Invalid argument supplied for foreach() in /home/mysite/public_html/sites/all/modules/boost/boost.module on line 628.
We are getting closer to perfect, but alas ..
Comment #12
liliplanet commentedHi again,
Sorry for the double request, but consistently have 15 errors of :
Invalid argument supplied for foreach() in /home/mysite/public_html/sites/all/modules/boost/boost.module on line 626every 10 minutes when cron runs.
When I go back and remove the patch of #3 have errors:
mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in /home/lilifilm/public_html/includes/database.mysqli.inc on line 323Not pretty :) please help ..
Thank you so much.
Liilan
Comment #13
kenorb commentedMaybe back to original one and patch it again, I don't have any errors like that.
And send the dump of the line of the problem which is in your file, because after patching it can be different.
Secondly it's good if you open the new issue, because I've tested this patch and it's working, so for sure this one line will not cause any foreach() warnings, so this is another case.
Comment #14
liliplanet commentedHi, It's fixed .. thank you so much.
Did a clean install of the boost.module, and then changed the path to the cache directory because I think maybe it was the automated path 'www.mysite.com' in the setup .. well instead just added a new folder 'mysite' and it seems to work.
Don't know how to delete the www.mysite.com files by ftp though, permission denied.
Again, fabulous! thank you.
Comment #15
liliplanet commentedOh Oh, I'm sorry, spoke to quickly. The errors are definitely back as follows:
Location http://www.mysite.com/cron.php
Message Invalid argument supplied for foreach() in /home/lilifilm/public_html/sites/all/modules/boost/boost.module on line 625.
Would appreciate any help on this, and thank you!
Lilian
Comment #16
liliplanet commentedSo sorry for this long thread, but also attaching a screenshot to see the errors :)
Comment #17
kenorb commentedLiliplanet:
This whole bug report is related to this error:
"mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in C:\sites\drupal6\includes\database.mysqli.inc on line 323"
Patch changed only one line, which probably is not related to your errors.
If you have different errors than in the first post, please create new issue with full description, because it's confusing pasting it here.
P.S. If you pasting your code of module, try to attach it as attachment.
Comment #18
mikeytown2 commented#3 fixes a watchdog error. #373444: Invalid argument supplied for foreach(): _boost_rmdir_rf() is the separate issue submitted by Liliplanet; error appears to be in the _boost_rmdir_rf() function.
Comment #19
mikeytown2 commentedcommitted patch from comment #3