Hi David
I hope you are well.
I have set up an addon website and don't seem to be able to import feeds to it.
As soon as I click on 'full import', it quickly goes back to the 'Register' page and shows that no feeds have been imported
The new website is running as a sub-directory of one of my other websites.
Could you help me to identify/overcome this problem, please?
Many thanks!
Kindest regards
Judie
Hi David
Thanks for your reply.
I'm afraid I'm a bit lost with this!
Where you have written: /example/ does the full address of the main website go here?
I think I will be OK once I know exactly what should be written instead of /example/.
Many thanks
Kindest regards
Judie
Hi Judie,
It's just the exact path to the installation not including http:// and your host name (not that it would cause any problem it they were included!)
For example, if your new installation is at
http://www.example.com/comparison/
Then line 6 of config.php should read:
$config_baseHREF = "/comparison/";
Hope this helps!
Cheers,
David.
--
PriceTapestry.com
Sorry, David: I'm back again!
The feed imported fine, but now I have another problem.
On the website, when I try to go back to the home page, (by clicking on 'Home' from the merchants' page), the website name is duplicated: http://www.example.co.uk/example), so I am getting a 404 error - Page Not Found.
Could you tell me how to correct this?
Thanks!
Judie
Hi Judie,
That sounds like the trailing "/" is missing in the value for $config_baseHREF. Check if it is missing and if you currently have:
$config_baseHREF = "/comparison";
...add the trailing "/" e.g.
$config_baseHREF = "/comparison/";
..and that should be all it is...
Cheers,
David.
--
PriceTapestry.com
Hi David
I had added the trailing "/", (as in: $config_baseHREF = "/comparison/";)
Can you think of anyting else it might be?
Thanks!
Kindest regards
Judie
Hi Judie,
Returning to the admin home page immediately would normally indicate that the database for the new installation hasn't yet been created. If you add a sub-directory installation in, say, /example/ first ensure that $config_baseHREF (config.php, line 6) is set to "/example/" and that a unique $config_databaseTablePrefix (config.php, line 30) has been set, e.g. "pt_example_".
Next, run
/example/setup.php
...and that should create the database and direct you to /example/admin/ to continue.
If that all looks OK, if you have copied across a modified version of the script to create your new installation and have added custom fields to it, those new fields may not yet have been added to the new database - this is the most likely reason for Registration failing.
You would be able to confirm this by enabling database debug mode by changing line 6 in config.advanced.php as follows:
$config_databaseDebugMode = TRUE;
...and then attempting to re-register a feed. If an error message such as "unknown column field_example' is displayed, then you would need to re-run the relevant dbmod.php script as described here, and that should be all it is...
If you're still not sure, if it's convenient to post the installation URL (I'll remove before publishing your reply) I'll check it out further for you...
Cheers,
David.
--
PriceTapestry.com