I may have found the source of the problem in the admin file. I noticed this peculiarity... $languages changes between the build langs code (lines 38-44 of the admin file) and when the drop down languages menu is created in line 166. I believe the problem is due to header.php being called. My admin header file sets up $languages for its own use. So, i am thinking if the variable name is changed in your files (i.e. to $languages_<something else>), perhaps it will start working. I was thinking of this a few days ago that maybe the variable names being the same are causing a conflict and something else you might want to change in a future version since $languages is used globally.

I'm going to try my hand at changing the variable name for $languages and see what happens.

Here is what my $languages var looks like just before the admin file tries to draw the admin drop down (note: this is actually one line of output, but I used CR's to make it easier to read on the forum):

Yes, I was correct. I changed the $languages var name to $languages_fm and the feedmachine_admin.php file now works properly.

I'm still working on the 1064 SQL error in feedmachine.php. We'll see if it's related.

Either way, my advice is to change any $language or $languages variables to a unique name. If global variables are turned off it would be a non-issue, but with them on as seems to be common it has the potential to create such conflicts. I've also changed the SQL script references to pointers where appropriate (e.g. TABLE_LANGUAGES instead of languages; same with currencies, etc.).

I'll report back on the 1064 error if I find a solution.

As an example, my "build languages" code section in feedmachine_admin.php now looks like this:

I've got this solved now too with the problem in feedmachine.php. It seemed to work ok even with the $languages var (i.e. dup of the global variable), but I changed all instances to $languages_fm just in case. Also had to run it twice the first time, but it all works great now.

I would suggest as a new feature the ability to create duplicate feeds with different options, using the same feed config. For example, let's say that I need 2 feeds built off Google Simple config, one in English and one in Spanish, both in US Dollars. Right now I seem to have to do them one at a time, changing (updating) the config in the process. Or I can make a duplicate of the Google Simple config file, rename it, and run both at the same time. But if I wanted to do this frequently it seems to me that this would become tedious.

Perhaps this is possible and I just have not figured out how to do it with the current setup, but it does not seem possible to me atm.

Well done for getting to the bottom of this. I'll make changes in the upcoming version. (By the way, the problem occurring in feedmachine.php was a direct consequence of no language being selected in Feedmachine Admin. feedmachine.php doesn't include any external code after the languages array is generated that could change it.)

I would suggest as a new feature the ability to create duplicate feeds with different options, using the same feed config. For example, let's say that I need 2 feeds built off Google Simple config, one in English and one in Spanish, both in US Dollars. Right now I seem to have to do them one at a time, changing (updating) the config in the process. Or I can make a duplicate of the Google Simple config file, rename it, and run both at the same time. But if I wanted to do this frequently it seems to me that this would become tedious.

I think it will be quite rare to need multiple versions of the same feed, so I think making copies of the configuration file is quite acceptable. Besides, there are small differences between the different language versions of the google feeds and having separate configuration files allows you to accommodate for these differences.

By the way, I'm afraid at the moment there is no Spanish version of Google Product Search. There are only UK, German and US versions.

how can i make a feed to have this fields and to be in xml?
<Products>
<Product>bla bla</product>
<Manufacturer>xxxx</Manufacturer>
<Name>bla bla bla</Name>
<Product_Url>http://www.blabla.co...m</Product_Url>
<Image_url>http://www.blabla.co...jpg</Image_url>
<Price>123</Price>
<category>bl;a bla bla</category>
<Description>more bla bla about the product</Description>
<Product_model>model of product</Product_model>
</Product>

I am afraid at the moment Feedmachine does not produce xml feeds. I might add this functionality in a future version, but to be honest I think that xml is inefficient for product feeds and all product search engines should except tab-delimited/csv feeds.

What product search engine are you trying to create a feed for and does it only accept xml feeds?

It wouldn't accept this so I had to change it to varchar(255) and remove
ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

Is this ok? or does it have bad consequences.

As I said it is creating my fm-feeds file ok.

The other problem is FTP settings when viewing feedmachine_admin.php

I haven't used FTP before with google, rather uploading manually. google says uploads.google.com but they don't specify a path. Also when I update, FTP always stays OFF. Is this normal? even after scrolling it to ON, when I update it goes back to OFF.

It wouldn't accept this so I had to change it to varchar(255) and removeENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

Is this ok? or does it have bad consequences.

As I said it is creating my fm-feeds file ok.

The other problem is FTP settings when viewing feedmachine_admin.php

I haven't used FTP before with google, rather uploading manually. google says uploads.google.com but they don't specify a path. Also when I update, FTP always stays OFF. Is this normal? even after scrolling it to ON, when I update it goes back to OFF.

Any help welcome.

Regards,Rob

I just wanted to add that I am getting an encoding error in description field. I don't know why so I have linked the text file. I reduced it to 4 items, so the file won't be too big too look at. Text File

Great to hear from a user of the original Feedmachine! I hope you will find the new system even better.

The changes you made to the sql are fine.

The FTP On/Off problem is a small bug that I will sort out in the next version - thanks for pointing it out. The problem is that the drop-down is not displaying the correct status, though you are turning ftp on and off when updating.

Hi,

Great Contrib! I have used the first one for a couple of years and now I have just upgraded to this one.

During the install I experienced problems with the end of the SQL file:

It wouldn't accept this so I had to change it to varchar(255) and removeENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

Is this ok? or does it have bad consequences.

As I said it is creating my fm-feeds file ok.

The other problem is FTP settings when viewing feedmachine_admin.php

I haven't used FTP before with google, rather uploading manually. google says uploads.google.com but they don't specify a path. Also when I update, FTP always stays OFF. Is this normal? even after scrolling it to ON, when I update it goes back to OFF.