{"id":18434711,"date":"2025-04-24T20:34:10","date_gmt":"2025-04-24T20:34:10","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=topic&#038;p=18434711"},"modified":"2025-04-25T05:33:12","modified_gmt":"2025-04-25T05:33:12","slug":"error-caught-in-dataaccess-php","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/error-caught-in-dataaccess-php\/","title":{"rendered":"Error Caught in DataAccess.php"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I get a recurrent error triggered by DataAccess.php line 253 (PHP Type: \u00a0E_ERROR).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example output of the stacktrace error array:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Array (<br \/>  &#091;type] =&gt; 1<br \/>  &#091;message] =&gt; Uncaught Error: Object of class WP_Error could not be converted to string in \/home\/example\/public_html\/wp-content\/plugins\/404-solution\/includes\/DataAccess.php:253 Stack trace: #0 \/home\/example\/public_html\/wp-content\/plugins\/404-solution\/includes\/DataAccess.php(504): ABJ_404_Solution_DataAccess-&gt;queryAndGetResults('\\n\/* -----------...') #1 \/home\/example\/public_html\/wp-content\/plugins\/404-solution\/includes\/SpellChecker.php(440): ABJ_404_Solution_DataAccess-&gt;storeSpellingPermalinksToCache('2010\/10\/\\xC2\\xBFtacos...', Array) #2 \/home\/example\/public_html\/wp-content\/plugins\/404-solution\/includes\/SpellChecker.php(313): ABJ_404_Solution_SpellChecker-&gt;findMatchingPosts('2010\/10\/\\xC2\\xBFtacos...', '1', '1') #3 \/home\/example\/public_html\/wp-content\/plugins\/404-solution\/includes\/WordPress_Connector.php(274): ABJ_404_Solution_SpellChecker-&gt;getPermalinkUsingSpelling('2010\/10\/\\xC2\\xBFtacos...') #4 \/home\/example\/public_html\/wp-content\/plugins\/404-solution\/404-solution.php(162): ABJ_404_Solution_WordPress_Connector-&gt;process404() #5 \/home\/example\/public_html\/wp-includes\/class-wp-hook.php(324): abj404_404listener('') #6 \/home\/example\/public_html\/wp-includes\/class-wp-hook.php(348): WP_Hook-&gt;apply_filters(NULL, Array) #7 \/home\/example\/public_html\/wp-includes\/plugin.php(517): WP_Hook-&gt;do_action(Array) #8 \/home\/example\/public_html\/wp-includes\/template-loader.php(13): do_action('template_redire...') #9 \/home\/example\/public_html\/wp-blog-header.php(19): require_once('\/home\/example\/...') #10 \/home\/example\/public_html\/index.php(17): require('\/home\/example\/...') #11 {main} thrown<br \/>  &#091;file] =&gt; \/home\/example\/public_html\/wp-content\/plugins\/404-solution\/includes\/DataAccess.php<br \/>  &#091;line] =&gt; 253 )<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;ve seen this error in several different sites. The error occurs when a request is made to view some removed pages\/files but not all of them. I think it has something to do with special characters used in URL slugs upsetting the spellchecker in 404 Solution.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Have you seen the error before and is there a fix?<\/p>\n","protected":false},"template":"","class_list":["post-18434711","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18434711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18434711\/revisions"}],"predecessor-version":[{"id":18435089,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18434711\/revisions\/18435089"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18434711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}