Page 1 of 1

2.3.0.2 - Google Base (Merchant) Feed issues

Posted: Fri Jun 09, 2017 3:55 am
by GilesM
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 />

Re: 2.3.0.2 - Google Base (Merchant) Feed issues

Posted: Tue Jun 13, 2017 2:53 am
by spitos
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"?

Re: 2.3.0.2 - Google Base (Merchant) Feed issues

Posted: Thu Jun 15, 2017 6:33 am
by GilesM
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!