Joomla! Discussion Forums



It is currently Tue Feb 09, 2010 10:28 pm (All times are UTC )

 





Post new topic Reply to topic  [ 9 posts ] 
Author Message
Posted: Wed Jul 15, 2009 2:54 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Jan 17, 2008 10:12 am
Posts: 32
Going to start here as I am using a modified Beez template.

Anyone else see this - it's a random '0' character that seems to appear in my search results. Ity has nothing to do with the amount of results, and I have ripped the php/html/etc apart to try and figure out where it is coming from!!!!

Attachment:
random-0-in-search-results.PNG


You do not have the required permissions to view the files attached to this post.


Top
  E-mail  
 
Posted: Wed Jul 15, 2009 3:05 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 8130
Location: Europe
Do you have the file
.../templates/[your-template]/html/com_search/search/default_results.php

Do you have a URL, so I can have a look at it?

Olaf

_________________
Olaf Offick - Global Moderator
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Posted: Wed Jul 15, 2009 3:27 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Jan 17, 2008 10:12 am
Posts: 32
Hi Olaf - it is an internal site so I can't give you a URL.

I have taken the default_results.php apart, as well as the _form and several other files. I have commented out code, included php echoes, etc. This one has just ballfed me. Maybe I have been looking at it too long!

It disappears if I check the 'Articles' box and search only articles.

Maybe it has something to do with PDF & Doc Indexers...?

Screenshot of where the '0' is in the HTML attached.

BM


You do not have the required permissions to view the files attached to this post.


Top
  E-mail  
 
Posted: Wed Jul 15, 2009 3:52 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 8130
Location: Europe
And in your templates index.php file what do you have between the lines:
Code:
<div id="wrapper">


and

Code:
<jdoc:include type="component" />


Olaf

_________________
Olaf Offick - Global Moderator
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Posted: Wed Jul 15, 2009 4:05 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Jan 17, 2008 10:12 am
Posts: 32
Here you go... this ONLY appears in the search results.

Code:
         <div id="wrapper">
         <div id="<?php echo $showRightColumn ? 'main2' : 'main'; ?>">
            <?php if ($this->getBuffer('message')) : ?>
            <div class="error">
               <h2>
                  <?php echo JText::_('Message'); ?>
               </h2>
               <jdoc:include type="message" />
            </div>
            <?php endif; ?>

            <jdoc:include type="component" />
         </div><!-- end main or main2 -->


Top
  E-mail  
 
Posted: Wed Jul 15, 2009 4:08 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 8130
Location: Europe
What kind of search plugins do you have installed?
Please check all the php files in the following directory: /.../plugins/search/

Olaf

_________________
Olaf Offick - Global Moderator
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Posted: Wed Jul 15, 2009 4:23 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Jan 17, 2008 10:12 am
Posts: 32
Ah yes. Now we are on the right track. I have two plugins, Doc Indexer & PDF Indexer from Nate Maxfield. If I disable these then the '0' goes away. I'll dig around their code base to see what might be happening.

Thanks Olaf.

BM.


Top
  E-mail  
 
Posted: Thu Jul 16, 2009 4:28 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Jan 17, 2008 10:12 am
Posts: 32
Is there no end to the depths of code in Joomla???

Here is a debug trace of sorts that somebody might be able to decipher...

Can anyone tell where exactly it is when it prints the 0? Is it some system file?

beez-index.php-1
beez-index.php-2
beez-index.php-3
beez-index.php-6
com-search-search.php-1
com-search-search.php-2
com-search-search.php-3
com-search-controller.php-1
com-search-controller.php-2
com-search-search.php-4
com-search-search.php-5
com-search-views-search-view.html.php-1
com-search-views-search-view.html.php-2
components-com-search-models-search.php-1
components-com-search-models-search.php-2
plugin-search-content.php-1
plugin-search-content.php-2
doc.searchbot.php-1
doc.searchbot.php-2
pdfs.searchbot.php-1
pdfs.searchbot.php-2
0
beez-search-default.php-1
beez-search-default.php-2
beez-search-default.php-3
beez-search-default.php-4
beez-search-default_results.php-1
<<< SEARCH RESULTS HERE >>>
beez-search-default_results.php-2
beez-search-default.php-5
beez-search-default_form.php-1
beez-search-default_form.php-2
beez-search-default.php-6
com-search-search.php-6
com-search-search.php-7
beez-index.php-7
beez-index.php-8
beez-index.php-13


Top
  E-mail  
 
Posted: Thu Jul 16, 2009 4:39 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar
Offline

Joined: Thu Jul 17, 2008 3:10 pm
Posts: 8130
Location: Europe
well, since it appears when you use the pdf or doc indexer, did you try to disable one of them see which plugin it is?

you said, when you disabled both, the 0 goes away, correct?
How about you disable the doc indexer and leave the pdf indexer enabled? Still there?
How about you disable the pdf indexer and leave the doc indexer enabled? Still there?

Can you try to switch the Error Reporting to Maximum in the Global Configuration.

Olaf

_________________
Olaf Offick - Global Moderator
Learn Skills - a world of learning at your fingertips
http://learn-skills.org


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group