I thought it was a js error at first, as it appeared to be dying on the dbxmanager (didn't even know that was in the theme, I may have to use that : )); reading further it seemed like folks had previously run into troubles with sidebar options... mussing around later I finally saw the php error in the logs (it may have been there before, but I loathe to try to recreate what I had prior to the setting changes!)
PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /www/site/wp-content/themes/suffusion42b/custom/breadcrumb.php on line 176
I commented out the lil' foreach block (offending line highlighted):
- Code: Select all
/* foreach ($stack as $element) {
if (is_array($element) && count($element) > 1) {
[color=#FF0000] $string_stack[] = "<a href='{$element[1]}' title='".esc_attr($element[0])."'>{$element[0]}</a>";
[/color] }
else if (is_array($element) && count($element) == 1) {
$string_stack[] = $element[0];
}
else if (!is_array($element)) {
$string_stack[] = $element;
}
}
*/
And amazingly things seem to work again. Any thoughts on what might be causing the problem?
Since it only seems to affect certain types of content I'll throw in the content of the offending post in JSON below (from the json wp api). While I make fairly heavy use of javascript there was nothing but various plugins and the theme in this case.
Any help would be great; thanks for the theme no matter what.
Cheers -
zen
{"status":"ok","post":{"id":32183,"type":"post","slug":"nessus-plugin-57573-powerdns-2.9.22.5-3.0.1-traffic-loop-dos-5","url":"https:\/\/localhost\/nessus\/nessus-plugin-57573-powerdns-2.9.22.5-3.0.1-traffic-loop-dos-5","status":"publish","title":"Nessus plugin 57573: PowerDNS 2.9.22.5 3.0.1 Traffic Loop DoS","title_plain":"Nessus plugin 57573: PowerDNS 2.9.22.5 3.0.1 Traffic Loop DoS","content":"<table border=1>\n<tr>\n<td>Severity<\/td>\n<td>High<\/td>\n<\/tr>\n<tr>\n<td>Tenable URL<\/td>\n<td>a href=\"http:\/\/www.nessus.org\/plugins\/index.php?view=single&id=57573\">nessus.org<\/a><\/td>\n<td>Exploits are available<\/td>\n<\/tr>\n<tr>\n<td>vuln_publication_date<\/td>\n<td>2012\/01\/10<\/td>\n<\/tr>\n<tr>\n<td>cpe<\/td>\n<td>cpe:\/a:powerdns:authoritative_server<\/td>\n<\/tr>\n<tr>\n<td>cvss_temporal_vector<\/td>\n<td>CVSS2#E:F\/RL:OF\/RC:C<\/td>\n<\/tr>\n<tr>\n<td>solution<\/td>\n<td>Upgrade to PowerDNS 2.9.22.5 \/ 3.0.1 or later.<\/td>\n<\/tr>\n<tr>\n<td>cvss_temporal_score<\/td>\n<td>6.4<\/td>\n<\/tr>\n<tr>\n<td>risk_factor<\/td>\n<td>High<\/td>\n<\/tr>\n<tr>\n<td>description<\/td>\n<td>According to its self-reported version number, a version of PowerDNS earlier than 2.9.22.5 \/ 3.0.1 is listening on the remote host. Versions of the PowerDNS Authoritative Server earlier than those are affected by a vulnerability in the package-cache such that they can be made to respond to DNS responses. <\/p>\n<p>A remote attacker could leverage this to setup a packet loop involving the affected service, causing it to perpetually answer responses and, in turn, to overwhelm the server or even the network if enough bouncing traffic is generated. <\/p>\n<p>Note that Nessus has only relied on the version itself and has not attempted to determine whether or not the install is actually affected or even the type of PowerDNS in use.\n<\/td>\n<\/tr>\n<tr>\n<td>plugin_publication_date<\/td>\n<td>2012\/01\/17<\/td>\n<\/tr>\n<tr>\n<td>cvss_vector<\/td>\n<td>CVSS2#AV:N\/AC:L\/Au:N\/C:N\/I:N\/A:C<\/td>\n<\/tr>\n<tr>\n<td>synopsis<\/td>\n<td>The remote name server may be affected by a denial of service vulnerability.<\/td>\n<\/tr>\n<tr>\n<td>plugin_type<\/td>\n<td>remote<\/td>\n<\/tr>\n<tr>\n<td>patch_publication_date<\/td>\n<td>2012\/01\/10<\/td>\n<\/tr>\n<tr>\n<td>see_also<\/td>\n<td>http:\/\/doc.powerdns.com\/powerdns-advisory-2012-01.html<\/p>\n<p>http:\/\/www.nessus.org\/u?9c15fb8b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>exploit_available<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>plugin_modification_date<\/td>\n<td>2012\/01\/19<\/td>\n<\/tr>\n<tr>\n<td>cvss_base_score<\/td>\n<td>7.8<\/td>\n<\/tr>\n<tr>\n<td>cve<\/td>\n<td>CVE-2012-0206<\/td>\n<\/tr>\n<tr>\n<td>bid<\/td>\n<td>51355<\/td>\n<\/tr>\n<tr>\n<td>xref<\/td>\n<td>OSVDB:78251<\/td>\n<\/tr>\n<tr>\n<td>plugin_version<\/td>\n<td>$Revision: 1.3 $<\/td>\n<\/tr>\n<\/table>\n","excerpt":"Severity High Tenable URL","date":"2012-05-02 15:55:11","modified":"2012-05-02 16:33:10","categories":[{"id":990,"slug":"bid","title":"bid","description":"","parent":989,"post_count":2},{"id":991,"slug":"cpe","title":"cpe","description":"","parent":989,"post_count":2},{"id":993,"slug":"cve","title":"cve","description":"","parent":992,"post_count":2},{"id":994,"slug":"cvss_base_score","title":"cvss_base_score","description":"","parent":992,"post_count":2},{"id":996,"slug":"cvss_temporal_score","title":"cvss_temporal_score","description":"","parent":995,"post_count":2},{"id":997,"slug":"cvss_temporal_vector","title":"cvss_temporal_vector","description":"","parent":995,"post_count":2},{"id":998,"slug":"cvss_vector","title":"cvss_vector","description":"","parent":289,"post_count":2},{"id":999,"slug":"description","title":"description","description":"","parent":289,"post_count":2},{"id":8620,"slug":"dns","title":"DNS","description":"","parent":0,"post_count":2},{"id":1001,"slug":"exploitability_ease","title":"exploitability_ease","description":"","parent":1000,"post_count":2},{"id":1002,"slug":"exploit_available","title":"exploit_available","description":"","parent":1000,"post_count":2},{"id":8653,"slug":"high","title":"High","description":"","parent":0,"post_count":2},{"id":29,"slug":"nessus","title":"Nessus","description":"","parent":0,"post_count":50},{"id":8586,"slug":"nessus_plugin-2","title":"Nessus_Plugin","description":"","parent":0,"post_count":2},{"id":1010,"slug":"patch_publication_date","title":"patch_publication_date","description":"","parent":1009,"post_count":2},{"id":1011,"slug":"plugin_modification_date","title":"plugin_modification_date","description":"","parent":1009,"post_count":2},{"id":1013,"slug":"plugin_publication_date","title":"plugin_publication_date","description":"","parent":1012,"post_count":2},{"id":1014,"slug":"plugin_type","title":"plugin_type","description":"","parent":1012,"post_count":2},{"id":1016,"slug":"plugin_version","title":"plugin_version","description":"","parent":1015,"post_count":2},{"id":1017,"slug":"risk_factor","title":"risk_factor","description":"","parent":1015,"post_count":2},{"id":1019,"slug":"see_also","title":"see_also","description":"","parent":1018,"post_count":2},{"id":1022,"slug":"solution","title":"solution","description":"","parent":1021,"post_count":2},{"id":1026,"slug":"synopsis","title":"synopsis","description":"","parent":1024,"post_count":2},{"id":1028,"slug":"vuln_publication_date","title":"vuln_publication_date","description":"","parent":1027,"post_count":2},{"id":1029,"slug":"xref","title":"xref","description":"","parent":1027,"post_count":2}],"tags":[{"id":3872,"slug":"cvecve-2012-0206","title":"cve=CVE-2012-0206","description":"","post_count":2},{"id":1257,"slug":"cvss_base_score7.8","title":"cvss_base_score=7.8","description":"","post_count":2},{"id":1256,"slug":"cvss_temporal_score6.4","title":"cvss_temporal_score=6.4","description":"","post_count":2},{"id":8653,"slug":"high","title":"High","description":"","post_count":2},{"id":1053,"slug":"nessus_plugin","title":"nessus_plugin","description":"","post_count":2},{"id":8565,"slug":"nessus_plugin57573","title":"nessus_plugin=57573","description":"","post_count":2}],"author":{"id":1,"slug":"admin","name":"admin","first_name":"","last_name":"","nickname":"admin","url":"","description":""},"comments":[],"attachments":[],"comment_count":0,"comment_status":"closed"},"previous_url":"https:\/\/localhost\/nessus\/32181\/"}
