Post by GilesM » Fri Jun 09, 2017 3:55 am

Hi there

Struggling a bit with Google Base feed.

- Downloaded google taxonomy
- Set this for each category
- posted URL into Google merchant

Problem:
I get an error from google (see below) however if I manually upload the XML it works fine - any ideas?

Code: Select all

<br />
<b>Fatal error</b>:  Class 'Controller' not found in <b>/homepages/24/d111111111/htdocs/catalog/controller/extension/feed/google_base.php</b> on line <b>2</b><br />

PGM

Don't pay for simple mods
My free modules: Filter resets in admin, Add extra flat shipping, Improved Admin Product Search and Canned Messages.
My site uses (free): Modification refresh button, Additional Alert Email Fix, TLT Structured Data
My site uses (paid): Journal2, Restrict catalog by customer group


New member

Posts

Joined
Mon May 29, 2017 8:28 pm

Post by spitos » Tue Jun 13, 2017 2:53 am

Works without error here on a clean install. Not made any changes to the file?
Can you post the first few lines of "catalog/controller/extension/feed/google_base.php"?

Image
Google Analytics Expert - Advanced e-commerce tracking, Product & options reporting, transaction/conversion reporting, Google Adwords conversion & profit reporting, goal & funnel reporting, event tracking, site search tracking, multi-store compatibility, EU Cookie Law compliance and works with any theme or checkout! Easy vqmod install. Get it here


User avatar
Active Member

Posts

Joined
Mon May 23, 2011 6:19 pm
Location - UK

Post by GilesM » Thu Jun 15, 2017 6:33 am

Hi Spitos,

The output structure is here: http://www.spotsandstripes.london/index ... oogle_base

And the first few lines of the source file are as follows:

Code: Select all

<?php
class ControllerExtensionFeedGoogleBase extends Controller {
	public function index() {
		if ($this->config->get('google_base_status')) {
			$output  = '<?xml version="1.0" encoding="UTF-8" ?>';
			$output .= '<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">';
			$output .= '  <channel>';
			$output .= '  <title>' . $this->config->get('config_name') . '</title>';
			$output .= '  <description>' . $this->config->get('config_meta_description') . '</description>';
			$output .= '  <link>' . $this->config->get('config_url') . '</link>';
Thanks for your help!

PGM

Don't pay for simple mods
My free modules: Filter resets in admin, Add extra flat shipping, Improved Admin Product Search and Canned Messages.
My site uses (free): Modification refresh button, Additional Alert Email Fix, TLT Structured Data
My site uses (paid): Journal2, Restrict catalog by customer group


New member

Posts

Joined
Mon May 29, 2017 8:28 pm
Who is online

Users browsing this forum: No registered users and 7 guests