|
From: Eric F. <fel...@gm...> - 2009-11-20 17:24:15
|
Hey Davide,
As I suspected, your mapping doesn't work properly: first you got an Apache
error, now it's a Triplify error. (Not very obvious, but the error msg is
generated by line 43 of index.php of Triplify 0.7). That means the situation
is actually better now.
If you replace that line by:
echo("<h1>Error 404</h1>Resource not found: class '$class' !");
Triplify will tell you WHAT resource it didn't find, which should help you
out.
I know it's not easy, I'm struggling myself!
However, you actually didn't specify on what exact URL you got the "Error
404: Resource not found!" message, which means I not only have to think
about the possible reasons Triplify is giving this error message, but people
I also have to speculate about what your exact URL request was (That sucks!
Also for you, because now I'll enjoy my weekend :-) )
I hope it was http://localhost/triplify/index.php/user<http://localhost/triplify/index.php/query>.
Is your error now "Resource not found: class 'user'!" ?
Good luck.
Regards,
Eric
On Fri, Nov 20, 2009 at 5:10 PM, Davide Ceolin <dav...@gm...>wrote:
> Dear Eric,
>
> thank you for your response.
>
> I have two simple queries (for the moment I only want to make it work and
> "query" was a fake name), which are:
>
> $triplify['queries']=array(
> 'user'=>"SELECT id,name AS 'foaf:firstname', SHA(CONCAT('mailto:',email))<%27,email%29%29>AS 'foaf:mbox_sha1sum' FROM demo",
> 'user2'=>"SELECT id,name AS 'foaf:firstname' FROM demo",
> );
>
> but the problem are not them, because they work (calling
> http://localhost/triplify) <http://localhost/triplify%29>. The problem is
> accessing one class or one instance (also setting
> properly $triplify['LinkedDataDepth']):
>
> when I leave index.php as it is the error received is:
>
> Not Found
>
> The requested URL /triplify/user was not found on this server.
>
> While disabling mod_rewrite as you suggested, the error reported is:
>
> Error 404Resource not found!
> Do you have any other idea?
>
> Thank you again.
> Cheers,
>
> Davide
>
> Il giorno 20/nov/09, alle ore 16:28, Eric Feliksik ha scritto:
>
> Dear Davide.
>
> It is not clear how you configured your SQL query for the class 'query'
> (you only mention the URI http:localhost/triplify/query , which is a sloppy
> url!)
>
> Are you having an apache-generated 404 error, or an "Error 404. Resource
> not found" error as generated by Triplify? Be specific! In my case I got an
> apache-generated 404 error. What I did was the following:
>
> 1) replace line 22 of index.php:
> (in_array('mod_rewrite',
> apache_get_modules())?'':'index.php/');
> with:
> (false && in_array('mod_rewrite',apache_get_modules())?'':'index.php/'); //
> mod_rewrite is installed, but somehow it's not used properly. Ignore it.
>
> 2) Try to access http://localhost/triplify/index.php/query
>
> If this works for you, you'll have to configure your mod_rewrite in order
> to get a nicer URL. Let me know how to do that, once you figured it out :-)
>
> Cheers,
> Eric
>
>
> On Fri, Nov 20, 2009 at 3:59 PM, Davide Ceolin <dav...@gm...>wrote:
>
>> Dear all,
>>
>> I am desperately looking for help. :)
>> I have just installed Triplify and calling http:localhost/triplify
>> everything works.
>> The problem is that invoking http:localhost/triplify/query, the server
>> doesn't understand the address and returns a "Not found" error.
>> mod_rewrite is on, the .htaccess file is as I downloaded it. Also
>> changing parameters in config.inc.php, nothing improves.
>> Does anyone have an idea about the solution?
>> Thank you in advance.
>> Cheers,
>>
>> Davide
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>> trial. Simplify your report design, integration and deployment - and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Triplify-discussion mailing list
>> Tri...@li...
>> https://lists.sourceforge.net/lists/listinfo/triplify-discussion
>>
>
>
>
|