Re: Indicia and PHP novice - help
Hi Everyone
NOTE: at 17:16 on 15th Oct I may have solved this problem by downloading the client_helpers and replacing the folder supplied with the Indicia download with that of the independant download. This time it has got past the include
<?php require 'client_helpers/data_entry_helper.php'; ?>
But I haven't got onto the next part yet so fingers crossed it will have solved this problem
Here is the original message: As a way of discovering the level of skill needed to put together an Indicia project I will be attempting to go through the tutorials with an outcome of having a data entry page linked up to the Indicia Warehouse at CEH.
So far I have set up a server on my PC using the WAMP stack which is working fine and I have put together a little website in PHP to put the data entry page into.
I have an account with the test warehouse and set up everything as per the instructions on this page http://code.google.com/p/indicia/wiki/TutorialBuildingBasicPage but when I get down to getting the authorisation tokens I get the following error:
Warning: require_once(helper_config.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\indicia\client_helpers\data_entry_helper.php on line 26
Fatal error: require_once() [function.require]: Failed opening required 'helper_config.php' (include_path='.;C:\php5\pear') in C:\wamp\www\indicia\client_helpers\data_entry_helper.php on line 26
When I take the code from the sample page at http://testwarehouse.indicia.org.uk/modules/demo/data_entry/basic_data_entry_tutorial.php and put it into my page it looks like it will do the job but isn't fully functional yet. It is only when I change the code to the one in the tutorial that I get this error.
I have the client help file copied over in the correct place and the files to which it refers are included, But the helper_config is not in the Client helper folder so is probably the cause. Any ideas why it isn't included? I haven't installed the Indicia data warehouse just unpacked it. Do I need to install this before I continue so all the files are in the correct place? Not got Postgrsql but mysql at the moment in the WAMP stack.
Any help to get me a little further advanced would be great.
I am logging all this and hope to have a useful report on how to improve the tutorial documentation - fresh eyes and all that!
Thanks
Jo