Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After the last upadate to 1.15, when I add or edit some nodes I see this error:
warning: md5() expects parameter 1 to be string, array given in /home2/madfanbo/public_html/site/sites/all/modules/boost/boost.module on line 1921.
Comment | File | Size | Author |
---|---|---|---|
#6 | boost-630174.patch | 1.18 KB | mikeytown2 |
#1 | boost-630174.patch | 948 bytes | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedAre you using some sort of rules, some special configuration? Here's a patch that will output to the dblog when this error would normally happen.
Comment #2
superfedya CreditAttribution: superfedya commentedMaybe it is Fivestar error? /site/fivestar/vote/node/148/vote/100?token=5155179326bc93b2aafd086d6417e2d3
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedvoting api (what 5 star uses) uses the boost_expire_node() function, to do its dirty work. From there it calls boost_cache_expire_router & boost_cache_expire_derivative with a pile of paths that should be expired as well at the same time. Eventually boost_cache_expire_derivative calls boost_cache_expire_router once it has looked up the content type in the database. boost_cache_expire_router looks up the filename, hash & base_dir via the database. The error you got could only be generated if the hash is missing and I'm assuming the database is up to date so you should have all your hashes. boost_cache_expire_router is not causing the issue in your case.
Next suspect... boost_cache_expire_derivative
If boost_cache_expire_router didn't find anything to kill, then it will also try to expire the file via filename. Which leaves boost_cache_flush_by_filename as the suspect function.
In here there is a slight chance that $files could be empty, if it is though boost_cache_kill will exit. Dead end.
Can you set the verbose setting to 9? That will give me a much better idea on when this error is hitting you. Provide all the debug messages as well as the error, let me know the order.
Comment #4
superfedya CreditAttribution: superfedya commentedAll this problems only with a last version of Boost. Before all works perfectly.
Debug: boost_cache_set_node_relationships()
10 of 10 given entries to the boost_cache_relationships table added or updated; 0 entries removed due to them being outdated.
Debug: boost_expire_node()
Node 125 was flushed resulting in 0 pages being expired from the cache
Debug: boost_cache_flush_by_filename()
Following files where flushed:
cache/normal/www.madfanboy.com/site/_page=2.html
Error: boost_cache_kill()
String was not given for filename: Array
[filename] => Array
[hash] => b4d10279464d94c30f2d1ec1e73b9efb
[filename] => cache/normal/www.madfanboy.com/site/rss.xml_.xml
[base_dir] => cache/normal/www.madfanboy.com/site
[expire] => 0
[lifetime] => -1
[push] => -1
[page_callback] => node_feed
[page_type] =>
[page_id] =>
[extension] => .xml
[timer] => 512
[timer_average] => 931
[hash_url] => 7d444ff38be539d04268b33e393b1d8b
[url] => http://www.madfanboy.com/site/rss.xml
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedID-ed issue; it's in boost_cache_expire_by_db()
Will write a patch soon.
Comment #6
mikeytown2 CreditAttribution: mikeytown2 commentedComment #7
srobert72 CreditAttribution: srobert72 commentedI have same error with 6.x-1.x-dev (2009-Nov-11) version.
I use Fivestar (6.x-1.19) also but all works perfectly before this last Boost version.
Comment #8
mikeytown2 CreditAttribution: mikeytown2 commented@srobert72
can you test the above patch #6 and let me know if it works?
Comment #9
mikeytown2 CreditAttribution: mikeytown2 commentedcommitted code from #1 & #6
Please Let me know if this doesn't fix the problem. You can grab the code in todays dev when it comes out in about an hour from now.
Comment #10
superfedya CreditAttribution: superfedya commentedfixed. thanks for the great support!