issue cli finder_indexer.php - J3.2

Need help with the Administration of your Joomla! 3.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
Brujo64
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Jul 11, 2009 5:13 pm

issue cli finder_indexer.php - J3.2

Post by Brujo64 » Thu Nov 07, 2013 8:25 pm

Since I updated to 3.2 the finder_indexer.php generates warnings and notices
Notice: Undefined index: HTTP_HOST in /httpdocs/libraries/joomla/application/web.php on line 875
PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /httpdocs/libraries/joomla/application/web.php:875) in /httpdocs/libraries/joomla/session/session.php on line 658

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /httpdocs/libraries/joomla/application/web.php:875) in /httpdocs/libraries/joomla/session/session.php on line 658
PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /httpdocs/libraries/joomla/application/web.php:875) in /httpdocs/libraries/joomla/session/session.php on line 658
any hint?
Brujo

 
secrets
I've been banned!
Posts: 109
Joined: Sat Aug 10, 2013 9:07 am

Re: issue cli finder_indexer.php - J3.2

Post by secrets » Tue Nov 19, 2013 8:07 pm

Did you ever get this resolved or even a comment? I have the same issue.

They say it might be rights to folders/files which should be 755 on folders and 644 on files but it wasn't the case.

I think it might be a bug in Joomla 3.2. My (ARTICLE) button browsing in the editor and filtering, searching to link articles isn't working either.

Brujo64
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Jul 11, 2009 5:13 pm

Re: issue cli finder_indexer.php - J3.2

Post by Brujo64 » Thu Nov 21, 2013 11:17 am

No I did not get it solved or any comment on this issue. Well it looks like Joomla 3.2 still has a lot of bugs and issues and it seems to be a long way to get a stable 3.5 :-(

Brujo

thesilentman
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Sep 11, 2013 10:39 pm

Re: issue cli finder_indexer.php - J3.2

Post by thesilentman » Tue Nov 26, 2013 10:17 pm

Hi,

I also had that problem. In my case, I had two PHP installations 5.3 and 5.4.
While the website was running under 5.3, the CLI was running under 5.3 which had no mysql extension installed.
Due to the session errors, the missing mysqli extension error never made it to the surface.

It's might also be possible, that the extension is installed, but not activated in the php.ini that the cli is loading. You might also check that.

Finally, after installing the mysqli extension in my case, the indexer ran correctly on Joomla content (smart search plugin).

It failed on indexing K2 ( v2.6.8 ) items though...
Got that error:

Code: Select all

PHP Fatal error:  Class 'K2Model' not found in /some/path/components/com_k2/helpers/route.php on line 318
[EDIT: I raised an issue for this one on the K2 repo on github https://github.com/joomlaworks/k2/issues/79]

Hope that helps.

Greetings,
Frank

secrets
I've been banned!
Posts: 109
Joined: Sat Aug 10, 2013 9:07 am

Re: issue cli finder_indexer.php - J3.2

Post by secrets » Wed Nov 27, 2013 9:00 pm

Strange you would have two different flavors of php. You must be using different repos or you downloaded a separate package of php? In my case this isn't the issue because I only stay with the generic repos for my OS and they're always the same version.

Brujo64
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Jul 11, 2009 5:13 pm

Re: issue cli finder_indexer.php - J3.2

Post by Brujo64 » Thu Nov 28, 2013 5:19 am

Well in my case the scheduled cronjob on the webserver was working fine within 3.1.5 and this error comes up after autoupdate -> Joomla 3.2.

http://joomlacode.org/gf/project/joomla ... 17&start=0

kind regards
Brujo

secrets
I've been banned!
Posts: 109
Joined: Sat Aug 10, 2013 9:07 am

Re: issue cli finder_indexer.php - J3.2

Post by secrets » Sat Nov 30, 2013 1:53 am

I have the same issue and it's caused by in my case incompatible extensions, conflicts with extensions.

I had to uninstall each extension then proceed with testing to see if it works or not. It's a pain but it's the only way to resolve some issues. Your errors seem a little easier to resolve. Check your logs and errors with php. Can you display logs?

Brujo64
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Jul 11, 2009 5:13 pm

Re: issue cli finder_indexer.php - J3.2

Post by Brujo64 » Sat Nov 30, 2013 7:12 am

Well in my case it is not extension/plugin based - had this before and got fixed by the Developers of the extension/plugin. It was working fine under 3.1.5 and comes up when I updated to 3.2.0

User avatar
cbahiana
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 185
Joined: Wed Aug 24, 2005 2:03 pm
Location: Rio de Janeiro
Contact:

Re: issue cli finder_indexer.php - J3.2

Post by cbahiana » Fri Dec 20, 2013 12:32 pm

I also started having this issues after updating from 3.1 to 3.2.

My first error message is:

Code: Select all

PHP Notice:  Undefined index: HTTP_HOST in /var/www/website/libraries/joomla/application/web.php on line 875
Line 875 from web.php belongs to this:

Code: Select all

                /*
                 * There are some differences in the way that Apache and IIS populate server environment variables.  To
                 * properly detect the requested URI we need to adjust our algorithm based on whether or not we are getting
                 * information from Apache or IIS.
                 */

                // If PHP_SELF and REQUEST_URI are both populated then we will assume "Apache Mode".
                if (!empty($_SERVER['PHP_SELF']) && !empty($_SERVER['REQUEST_URI']))
                {
                        // The URI is built from the HTTP_HOST and REQUEST_URI environment variables in an Apache environment.
                        $uri = $scheme . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
                }
                // If not in "Apache Mode" we will assume that we are in an IIS environment and proceed.
                else
                {
                        // IIS uses the SCRIPT_NAME variable instead of a REQUEST_URI variable... thanks, MS
                        $uri = $scheme . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];

                        // If the QUERY_STRING variable exists append it to the URI string.
                        if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING']))
                        {
                                $uri .= '?' . $_SERVER['QUERY_STRING'];
                        }
                }

                return trim($uri);
        }
More precisely, line 875 is:

Code: Select all

$uri = $scheme . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];
So, it's the Apache or IIS check that's failling (mine is an Apache 2 running PHP Version 5.3.10-1ubuntu3.9, BTW).
Carlos Bahiana
You can't always get what you want, but if you try sometimes...

https://www.softdesign.eti.br

Brujo64
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Jul 11, 2009 5:13 pm

Re: issue cli finder_indexer.php - J3.2

Post by Brujo64 » Thu Jan 09, 2014 6:09 am

I found out that HTTP_HOST is not set if you run php in command line. It seems we need patience the Tracker Item is open since 2013-11-25 without any response... I realy ask my if the /cli things like finder component is activele maintenanced in Joomla..

User avatar
atarr
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Oct 23, 2008 6:06 pm
Location: Massachusetts, USA
Contact:

Re: issue cli finder_indexer.php - J3.2

Post by atarr » Fri Apr 04, 2014 12:43 pm

I'm having the same issue and I solved it by moving the definition of the HTTP_HOST up a line in the cli/finder_indexer.php

From:
// Fool the system into thinking we are running as JSite with Finder as the active component
JFactory::getApplication('site');
$_SERVER['HTTP_HOST'] = 'domain.com';
define('JPATH_COMPONENT_ADMINISTRATOR', JPATH_ADMINISTRATOR . '/components/com_finder');

To:
// Fool the system into thinking we are running as JSite with Finder as the active component
$_SERVER['HTTP_HOST'] = 'domain.com';
JFactory::getApplication('site');
define('JPATH_COMPONENT_ADMINISTRATOR', JPATH_ADMINISTRATOR . '/components/com_finder');
Andrea Tarr
http://www.tarrconsulting.com - Tarr Consulting
http://www.twitter.com/Tarrconsulting - Follow me on Twitter @Tarrconsulting

User avatar
cbahiana
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 185
Joined: Wed Aug 24, 2005 2:03 pm
Location: Rio de Janeiro
Contact:

Re: issue cli finder_indexer.php - J3.2

Post by cbahiana » Fri Apr 04, 2014 12:50 pm

Thank you Andrea, I'm making the same change to see if my problem goes away.
Carlos Bahiana
You can't always get what you want, but if you try sometimes...

https://www.softdesign.eti.br

User avatar
cbahiana
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 185
Joined: Wed Aug 24, 2005 2:03 pm
Location: Rio de Janeiro
Contact:

Re: issue cli finder_indexer.php - J3.2

Post by cbahiana » Tue Apr 08, 2014 12:23 pm

This is just to confirm that Andrea's hack really works.

Good job!
Carlos Bahiana
You can't always get what you want, but if you try sometimes...

https://www.softdesign.eti.br

 

Locked

Return to “Administration Joomla! 3.x”