Search
Other Sourcerer questions
Forum

J4 smart search displaying content inside source tags

bwd's Avatar bwd
Is there a way to completely hide the content in source tags and the snippet tags from search results?

I am using the configuration option in Sourcerer: Advanced => Remove from Search

But the end of the php include is shown and also the snippet tags.

I have deleted cache, deleted all indexes, Cleared index and Re-indexed but the content still shows up:
Confidential information:
(hidden)


Thanks
Dave
Peter van Westen's Avatar Peter van Westen ADMIN
It is probably due to the system plugin ordering. Try changing the ordering of the plugins in question.
See: regularlabs.com/blog/242-plugin-order-is-important
Please post a rating at the Joomla! Extensions Directory
bwd's Avatar bwd
I can't seem to fix it using plugin ordering... in fact I think I made it worse:
Confidential information:
(hidden)


I think I will have to hide the search Result Description, but this makes the Search way less useful. I liked the old Joomla search and wish they hadn't changed it.
Peter van Westen's Avatar Peter van Westen ADMIN
Maybe you have better luck with a 3rd party search component/solution.
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
PS: Reindex after installing the dev version...
Please post a rating at the Joomla! Extensions Directory
bwd's Avatar bwd
Thanks! The results are much better:
Confidential information:
(hidden)


But now during indexing I keep getting errors. It does get about 90% of the way through.

These are 4 tries:

Index #1:
An Error Has Occurred The following message was returned by the server:
A parse error has occurred while processing the following JSON data:
Unexpected token '<', " <!DOCTYPE "... is not valid JSON

Index #2:
An Error Has Occurred Call to a member function get() on null

Index #3: Error reporting MAX
An Error Has Occurred The following message was returned by the server:
An error has occurred while fetching the JSON data: HTTP 500 status code.

Index #4: Error reporting MAX
An Error Has Occurred The following message was returned by the server:
A parse error has occurred while processing the following JSON data:
Unexpected token '<', "<br /> <b>"... is not valid JSON
Peter van Westen's Avatar Peter van Westen ADMIN
Yeah, that's the joy of the indexer for you.

Can you give me (super) admin and (s)ftp access so I can take a look?
You can use the 'Confidential information' button in the forum editor to hide sensitive information.
Please post a rating at the Joomla! Extensions Directory
bwd's Avatar bwd
Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
The indexing broke on the Webcam Archive module. For some reason the $input variable was not created. This is most probably because of your non-absolute include statement of the getvariable.php file.
See here: docs4.regularlabs.com/sourcerer/the-basics/including-files

Also, as you can see in the docs, Sourcerer already prepares the $app object variable for you:
docs4.regularlabs.com/sourcerer/the-basics/using-php-code
So you can simply directly use $app->input(...) in your code. No need for that custom file.

So from what I can tell, the issues you are facing with the indexing now are due to issues in your own custom PHP code.
Please post a rating at the Joomla! Extensions Directory
bwd's Avatar bwd
Hi Peter:

Thank you for taking the time to check the site and for your explanation. All fixed.
Dave
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription