On Dienstag, 22. Juli 2008, The Gadget Doctor wrote:
> I used SVN today to upgrade to the latest build and want to upgrade to the
> new store so I followed the instructions below:
>
> (1) Login to your server, and change directory to [wikipath]/maintenance
>
> This is a little misleading, should be
> [wikipath]/extensions/SemanticMediaWiki/maintainance
>
> (2) Run php SMW_setup.php -b SMWSQLStore2 and follow its progress.
>
> This worked OK
>
> (3) Run php SMW_refreshData.php -tpv -b SMWSQLStore2 and follow its
> progress.
>
> This failed until I added the following line (copied from setup.php):
>
> set_include_path( get_include_path() . PATH_SEPARATOR .  dirname(__FILE__)
> . '/../../../' . 'maintenance' );

I think Dan answered that. Also see the README file in the maintenance 
directory.

>
> (4) Run php SMW_refreshData.php -v -b SMWSQLStore2 and follow its progress.
> This failed and I've reached the limit of my debugging skills. I have no
> idea why DPL2 php files are involved in this! Error message is below:
>
> [EMAIL PROTECTED] maintenance]$ php SMW_refreshData.php -v -b SMWSQLStore2
> PHP Warning:  set_time_limit(): Cannot set time limit in safe mode in
> /var/www/vhosts/adv01.mysever.com/httpdocs/w/maintenance/commandLine.inc on
> line 238
>
> Selected storage SMWSQLStore2 for update!
>
> Refreshing all semantic data in the database!
> ---
>  Some versions of PHP suffer from memory leaks in long-running scripts.
>  If your machine gets very slow after many pages (typically more than
>  1000) were refreshed, please abort with CTRL-C and resume this script
>  at the last processed page id using the parameter -s (use -v to display
>  page ids during refresh). Continue this until all pages were refreshed.
> ---
> Processing pages from ID 0 to ID 144 ...
> (0) Processing page with ID 1 ...
> PHP Fatal error:  Call to a member function getNamespace() on a non-object
> in /var/www/vhosts/
> adv01.myserver.com/httpdocs/w/extensions/DynamicPageList/DynamicPageList2.p
>hpon line 3011

It is common, and we have experienced this for SMW, that some things work 
differently when running extensions from a script. Also, some errors only 
show up when running scripts. I assume this is just a glitch in the DLP2 
implementation that could be fixed by some debugging. I do not expect that 
there is much interplay between SMW and DLP2 here -- just DLP2 fails when run 
from the commandline. My guess is that DLP2 accesses some PHP global during 
parsing that should never be used during parsing ($wgTitle would be my first 
candidate). If so, the problem should also occur with other scripts than 
SMW's.

Regards,

Markus


-- 
Markus Krötzsch
Semantic MediaWiki    http://semantic-mediawiki.org
http://korrekt.org    [EMAIL PROTECTED]

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Semediawiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to