Page 1 of 2

Installation/Configuration Complete, Index.php Problems!

PostPosted: Wed Jul 06, 2011 7:52 pm
by rappadappa77
Hello Guys,

Downloaded, Installed and Configured Tera-Wurfl 2.1.5 on my server, but getting errors when i try to configure my index.php page, can someone help me please?

Howard

Re: Installation/Configuration Complete, Index.php Problems!

PostPosted: Thu Jul 07, 2011 2:35 am
by renclav
what are you errors? Did you look at your apache logs?
Also, configure you index page, what do you mean by that?

Regards
Dylan

Re: Installation/Configuration Complete, Index.php Problems!

PostPosted: Thu Jul 07, 2011 9:21 am
by kamermans
I'm assuming from the title that you've gone to the install.php file and everything looks ok. Have you also gone to the admin/ page and clicked on Tera-WURFL test script to see if it's working?

Re: Installation/Configuration Complete, Index.php Problems!

PostPosted: Thu Jul 07, 2011 10:57 am
by rappadappa77
Hi Guys,

Yes i added the script and i got an error on line 2, yes i clicked on Tera-WURFL test script and it is working.

Howard

Re: Installation/Configuration Complete, Index.php Problems!

PostPosted: Thu Jul 07, 2011 11:00 am
by kamermans
Howard, how can we help you if we don't even know the error message or what's on line 2?

Re: Installation/Configuration Complete, Index.php Problems!

PostPosted: Thu Jul 07, 2011 1:10 pm
by rappadappa77
Warning: require_once(./TeraWurfl.php) [function.require-once]: failed to open stream: No such file or directory in /home/myusername/public_html/mysite.com/index.php on line 2

Fatal error: require_once() [function.require]: Failed opening required './TeraWurfl.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/myusername/php') in /home/myusername/public_html/mysite.com/index.php on line 2

Re: Installation/Configuration Complete, Index.php Problems!

PostPosted: Thu Jul 07, 2011 1:25 pm
by kamermans
It sounds like line 2 of your index.php looks like this:
Code: Select all
require_once './TeraWurfl.php';

but your Tera-WURFL installation is probably in a subfolder, like 'TeraWurfl', in which case the line should be changed to:
Code: Select all
require_once './TeraWurfl/TeraWurfl.php';

Re: Installation/Configuration Complete, Index.php Problems!

PostPosted: Thu Jul 07, 2011 1:29 pm
by rappadappa77
Will try that.

Re: Installation/Configuration Complete, Index.php Problems!

PostPosted: Thu Jul 07, 2011 1:34 pm
by rappadappa77
It worked, thanks Kamerman :)

Now i will try to combat the firefox user agent switcher.

Re: Installation/Configuration Complete, Index.php Problems!

PostPosted: Thu Jul 07, 2011 1:38 pm
by kamermans
You're welcome :)

The FireFox User Agent switcher is a complicated problem without a clear solution. If you find a way around it, please let me know!