SMW_refreshData.php breaks on RAP integration

View: New views
5 Messages — Rating Filter:   Alert me  

SMW_refreshData.php breaks on RAP integration

by Fred Benenson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi There,
I just upgraded to the new version of SMW and want to get RAP integration working. I got as far as installing RAP and it adds the tables to my MySQL db, but I'm getting this error:

Refreshing all semantic data in the database!
Processing pages from ID 0 to ID 1013 ...
PHP Fatal error:  Call to a member function find() on a non-object in /var/www/html/w/extensions/SemanticMediaWiki/includes/storage/SMW_RAPStore.php on line 343


When I'm trying to run SMW_refreshData.php in the maintenance directory. Any thoughts?

Thanks,

Fred


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@...
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

Re: SMW_refreshData.php breaks on RAP integration

by techforn10 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am facing the same problem. Were you successful in solving that problem?? If yes then please let me know how.
Fred Benenson wrote:
Hi There,
I just upgraded to the new version of SMW and want to get RAP integration
working. I got as far as installing RAP and it adds the tables to my MySQL
db, but I'm getting this error:

Refreshing all semantic data in the database!
Processing pages from ID 0 to ID 1013 ...
PHP Fatal error:  Call to a member function find() on a non-object in
/var/www/html/w/extensions/SemanticMediaWiki/includes/storage/SMW_RAPStore.php
on line 343


When I'm trying to run SMW_refreshData.php in the maintenance directory. Any
thoughts?

Thanks,

Fred

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

Re: SMW_refreshData.php breaks on RAP integration

by Mark Fiers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, I got it fixed;

although I'm not sure of all implications, and new to semantic mediawiki and RAP, I fixed it by adding

$wgServer = "http://servername.somewhere.nl";

to mediawiki's LocalSettings.php

SMW_RAPStore guesses a modeluri to retrieve the RAP model from the database. Apparently, it does that based on the variable $wgServer in the settings. In my case $wgServer was not present, so it guessed localhost, whereas php running under apache while generating the db tables used the proper servername. You can look it up in de RAP database, table models.

After setting it, I can execute SMW_refreshData.php from the commandline again.


Cheers
Mark



Hi,

I am facing the same problem. Were you successful in solving that problem?? If yes then please let me know how.
Fred Benenson wrote:
Hi There,
I just upgraded to the new version of SMW and want to get RAP integration
working. I got as far as installing RAP and it adds the tables to my MySQL
db, but I'm getting this error:

Refreshing all semantic data in the database!
Processing pages from ID 0 to ID 1013 ...
PHP Fatal error:  Call to a member function find() on a non-object in
/var/www/html/w/extensions/SemanticMediaWiki/includes/storage/SMW_RAPStore.php
on line 343


When I'm trying to run SMW_refreshData.php in the maintenance directory. Any
thoughts?

Thanks,

Fred

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user


Re: SMW_refreshData.php breaks on RAP integration

by techforn10 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Even I got it fixed, I just ran SMW_setup.php multiple times. Then ran SMW_refreshData.php, it ran smoothly :).

cheers,
Ashwin


Hi, I got it fixed;

although I'm not sure of all implications, and new to semantic mediawiki and RAP, I fixed it by adding

$wgServer = "http://servername.somewhere.nl";

to mediawiki's LocalSettings.php

SMW_RAPStore guesses a modeluri to retrieve the RAP model from the database. Apparently, it does that based on the variable $wgServer in the settings. In my case $wgServer was not present, so it guessed localhost, whereas php running under apache while generating the db tables used the proper servername. You can look it up in de RAP database, table models.

After setting it, I can execute SMW_refreshData.php from the commandline again.


Cheers
Mark


techforn10 wrote:
Hi,

I am facing the same problem. Were you successful in solving that problem?? If yes then please let me know how.
Fred Benenson wrote:
Hi There,
I just upgraded to the new version of SMW and want to get RAP integration
working. I got as far as installing RAP and it adds the tables to my MySQL
db, but I'm getting this error:

Refreshing all semantic data in the database!
Processing pages from ID 0 to ID 1013 ...
PHP Fatal error:  Call to a member function find() on a non-object in
/var/www/html/w/extensions/SemanticMediaWiki/includes/storage/SMW_RAPStore.php
on line 343


When I'm trying to run SMW_refreshData.php in the maintenance directory. Any
thoughts?

Thanks,

Fred

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

Re: SMW_refreshData.php breaks on RAP integration

by Markus Krötzsch-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ah, I see. This is in fact a general issue: SMW sometimes needs to know the
server address for making URIs or URLs, but a command-line script often
cannot get this information. Some SMW scripts already have an
option "--server=<servername>" where one can set the server for one
invocation of the script. I guess I should also add this option to
SMW_refreshData as well.

-- Markus

On Montag, 23. Juni 2008, Mark Fiers wrote:

> Hi, I got it fixed;
>
> although I'm not sure of all implications, and new to semantic mediawiki
> and RAP, I fixed it by adding
>
> $wgServer = "http://servername.somewhere.nl";
>
> to mediawiki's LocalSettings.php
>
> SMW_RAPStore guesses a modeluri to retrieve the RAP model from the
> database. Apparently, it does that based on the variable $wgServer in the
> settings. In my case $wgServer was not present, so it guessed localhost,
> whereas php running under apache while generating the db tables used the
> proper servername. You can look it up in de RAP database, table models.
>
> After setting it, I can execute SMW_refreshData.php from the commandline
> again.
>
>
> Cheers
> Mark
>
> techforn10 wrote:
> > Hi,
> >
> > I am facing the same problem. Were you successful in solving that
> > problem?? If yes then please let me know how.
> >
> > Fred Benenson wrote:
> >> Hi There,
> >> I just upgraded to the new version of SMW and want to get RAP
> >> integration working. I got as far as installing RAP and it adds the
> >> tables to my MySQL
> >> db, but I'm getting this error:
> >>
> >> Refreshing all semantic data in the database!
> >> Processing pages from ID 0 to ID 1013 ...
> >> PHP Fatal error:  Call to a member function find() on a non-object in
> >> /var/www/html/w/extensions/SemanticMediaWiki/includes/storage/SMW_RAPSto
> >>re.php on line 343
> >>
> >>
> >> When I'm trying to run SMW_refreshData.php in the maintenance directory.
> >> Any
> >> thoughts?
> >>
> >> Thanks,
> >>
> >> Fred
> >>
> >> ------------------------------------------------------------------------
> >>- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't
> >> miss this year's exciting event. There's still time to save $100. Use
> >> priority code J8TL2D2.
> >> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j
> >>avaone _______________________________________________
> >> Semediawiki-user mailing list
> >> Semediawiki-user@...
> >> https://lists.sourceforge.net/lists/listinfo/semediawiki-user


--
Markus Krötzsch
Semantic MediaWiki    http://semantic-mediawiki.org
http://korrekt.org    markus@...


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@...
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

signature.asc (196 bytes) Download Attachment
LightInTheBox - Buy quality products at wholesale price