Search problem with error

Hi

i just installed suitcrm 8.10 and everything looks fine. but when in try to search, this error shows

suitcrm/public/legacy/lib/Search/SearchResults.php on line 129

Have you set the correct permissions?

  • Run a Quick Repair and Rebuild

  • Clear the System Cache

# Run from the SuiteCRM root directory
./bin/console cache:clear

Audit Custom Search Metadata

  • Navigate to public/legacy/custom/modules/<TargetModule>/metadata/
  • Open searchfields.php or SearchFields.php
  • Ensure custom arrays are well-formed and do not pass null values where standard data types are expected.
  • Make sure fields intended for global index matching include 'force_unifiedsearch' => true.

Hello,

we could look into the code:

but it’s usually a waste of time - in most cases, SuiteCRM works really well and real bugs are rare.

Let’s look into your server setup first.
Could you give us some details?

Webserver? DB? Are you using a vHost? PHP? PHP modules? Versions? Which distribution?
And maybe permissions - but let’s first check your server in general.

Thank you for your reply.

i change the /var/www/html/suitcrm/public/legacy/lib/Search/SearchResults.php line 129 to
foreach ((array)($beans[‘results’] ?? [ ]) as $bean) {
based on what AI said. and it fix the issue.
i use Ubuntu 22.04
apache 2.4
MariaDB 10.6.23
PHP 8.3.33
and install Suitcrm based on the document

Now, you’d simply return an empty array - not really a solution / fix - more a cover / alternative idea.

Did you connect to ElasticSearch / OpenSearch?
Try to figure out, why the search fails, rather than letting it fail silently and returning nothing (even though there might be search results.
What’s the rest of your setup situation?
Any customizations?
If you switch to debug mode in the system settings for the log file, what other issues do you see?
Specifically before running into the issue.
Can you replicate the issue on the demo: SuiteCRM Demo - Try it today! ?
And if not, best to ask the AI about details in the log file - not the code.

you are right, i do not see this error in demo.
it is fresh install btw. i did not connect to any 3rd software
maybe i need to install it again

Sometimes, a re-install helps. Give it a try - that’s easy with a fresh system.
That’s usually only if something failed / was wrong during the first install.

If things still throw errors afterwards, there could be an issue with the server.

Also, set correct permissions.

You could clear symfony cache by running command below on your SuiteCRM 8 instance root:

./bin/console cache:clear