Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

wierd text in search result on google for OSC 2.2 site


apmuskel

Recommended Posts

Our OSC site have been running for about 1 year now I would say and is working fine.

 

But when I do an organic search on google for our site the result looks wierd...

 

This text is under the title in the search result:

"Warning: extract() expects parameter 1 to be array, null given in /customers/1/8/f/vattenfilterbutik.se/httpd.www/includes/application_top.php on line 217 ..."

 

I can figure out why this is?

How can the google crawler find this warning.. its not in the sorce code as far as I can tell

 

See attachment for more info.

 

The problem does not seem to be on all search result but its there on I couple of keywords

 

Edit:

I dont know if this helps but on line 217 in applications_top.php you will find this:

extract($_SESSION, EXTR_SKIP); 

post-330087-0-42596000-1439811817_thumb.jpg

Link to comment
Share on other sites

The error must have been present at some stage on your pages, google crawled it, and is now probably sitting in the index cached. You are also not using meta description tags, which means Google decides what descriptive text to put. If you try using meta description, maybe google will use that instead.

Link to comment
Share on other sites

The error must have been present at some stage on your pages, google crawled it, and is now probably sitting in the index cached. You are also not using meta description tags, which means Google decides what descriptive text to put. If you try using meta description, maybe google will use that instead.

 

Thx for your reply Hotclutch.

That might very well be the reson ofcourse.

Link to comment
Share on other sites

What version of osCommerce are you running, and on what PHP version? Any add-ons? The PHP error reported is that $_SESSION is not defined for some reason. A very old PHP would define $HTTP_SESSION_VARS (or something like that) instead of $_SESSION, or it could just be a fluke error that Google just happened to encounter. If it seems to be OK for regular users, you might want to get on to Google's Webmaster tools (or whatever it's called now) and request a new indexing from Google.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...