1
soconfused
problem with search after cloning module
  • 2005/9/9 10:36

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


Hi,
I made a clone of the smart section module (xoops 2.0.9.2)
Everything works fine except there is a format/style sheet problem with the XOOPS search, for some reason if you search for anything the resuts are outputted with no header, footer or stylesheet just the results, it still returns results ok. It's probably something quite simple to fix (I hope) Any clues as to how I might fix it?

I've saved the search results page so you can see what I mean - this is all the html the search page generates:

<html>

<head>
</head>

<body>

<h3>Search Results</h3>
Keyword(s): <b>ghtyth</b><br>
<h4>Message Board</h4>
<p>No Match Found for your Query</p>
<h4>xcGallery</h4>
<p>No Match Found for your Query</p>
<h4>SmartSection</h4>
<p>No Match Found for your Query</p>
<h4>Edito</h4>
<p>No Match Found for your Query</p>
<h4>Articles</h4>
<p>No Match Found for your Query</p>
<h4>Articles</h4>
<p>No Match Found for your Query</p>
<h4>WF-Channel</h4>
<p>No Match Found for your Query</p>
<h4>wfsection</h4>
<p>No Match Found for your Query</p>
<h4>SmartClone</h4>
<p>No Match Found for your Query</p>
<h4>AM Events</h4>
<p>No Match Found for your Query</p>
<h4>weBLog</h4>
<p>No Match Found for your Query</p>
<h4>myMedia</h4>
<p>No Match Found for your Query</p>
<h4>Small ads</h4>
<p>No Match Found for your Query</p>

</body>

</html>

Once the cloned module is disabled the results return to normal.

2
LazyBadger
Re: problem with search after cloning module

Try to check deeply smartsection_search function in cloned module... Maybe some old names wasn't replaced?
Quis custodiet ipsos custodes?

Webmaster of
XOOPS2.RU
XOOPS Modules Proving Ground
XOOPS Themes Exhibition

3
soconfused
Re: problem with search after cloning module
  • 2005/9/9 11:14

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


Hi,
Thanks for replying, I've looked through the code & searched it but can't see anything.

4
marcan
Re: problem with search after cloning module
  • 2005/9/9 11:38

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


Hi,

Thanks for the feedback. I was able to easily reproduce teh bug and if the phpdebug is active , a nice little fatal error is displayed, telling us exactly where the bug is coming from .

This is indeed a bug that will be fixed in next release.

In the mean time, you can perform these Find and Replace action on the original smartsection in order to fix the bug and be able to clone it again properly, following the same instructions in clone.txt. Remember, case sensitivity is essential.

ssItem => SmartsectionItem
ssitem => smartsectionitem
ssCategory => SmartsectionCategory
sscategory => smartsectioncategory
ssFile => SmartsectionFile
ssfile => smartsectionfile

Let me know !
.:: marcan (aka mal aka Marc-André) ::.
.:: Open Source :: The SmartFactory ::.
.:: XOOPS Professional Services :: INBOX International ::.

Login

Who's Online

176 user(s) are online (84 user(s) are browsing Support Forums)


Members: 0


Guests: 176


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits