Data repair and upgrade after update

From semantic-mediawiki.org

I am getting fatal PHP errors while updating the SMW database after an upgrade...

2015-10-15 13:23:13 SMW\UpdateJob MACBEATH_Jimmy (id=57732) STARTING PHP Fatal error: Class 'ParamDefinition' not found in /var/www/wiki/extensions/SemanticMediaWiki/includes/query/SMW_QueryProcessor.php on line 664


And....


PHP Fatal error: Class 'ParamDefinition' not found in /var/www/wiki/extensions/SemanticMediaWiki/includes/query/SMW_QueryProcessor.php on line 664


PHP Fatal error: Class 'ParamProcessor\StringParam' not found in /var/www/wiki/extensions/Maps/includes/ServiceParam.php on line 18


Several similar errors revolving around this ParamProcessor, I installed Validator and set it up in LocalSettings, bit worrying.


Is this a known problem?


Debian Squeeze

PHP 5.3.3-7 MySQL 5.1.73-1

15:15, 15 October 2015

> I am getting fatal PHP errors while updating the SMW database after an upgrade...

From where to where did you upgrade?

Did you follow the steps as outlined in one of the mentioned upgrade guides [0]?

> PHP Fatal error: Class 'ParamDefinition' not found

Please see [1].

[0] https://semantic-mediawiki.org/wiki/Help:Installation

[1] https://semantic-mediawiki.org/wiki/Help:Installation#Troubleshooting

15:29, 15 October 2015

I upgraded from MW 1.22 - 1.25 and ran the database upgrade, SMW I upgraded to the latest version from 1.8.5.3, so quite an old version. I followed the instructions re: Composer and now I get:

MediaWiki requires the PSR-3 logging library to be present. This library is not embedded directly in MediaWiki's git repository and must be installed separately by the end user. Please see mediawiki.org for help on installing the required components.

Having to go AFK now, bit surprised how difficult this process has been, I had it up and running quite well before.

16:48, 15 October 2015

> MediaWiki requires the PSR-3 logging library to be present. This library is not embedded directly in MediaWiki's git repository and must be installed separately by the end user. Please see mediawiki.org for help on installing the required components.

This message is generated by MW itself and has not really something to do with SMW (whether you would have installed it via Composer or the Tarball).

In regards to the message, if you run composer update from the MW base directory then it should install the libraries as requested by MW.

> Having to go AFK now, bit surprised how difficult this process has been, I had it up and running quite well before.

Looking at [0, 1], I personally find the process fairly simple but it varies with experience. Now (as of 1.25), that MW uses Composer itself to manage external libraries, SMW is just one component to leverage the infrastructure necessary in handling external dependencies.

[0] https://vimeo.com/82255034 [1] https://vimeo.com/127356533

17:05, 15 October 2015
 

If you think the instructions are not as easy to follow as expected or need adaption in order to make them more self-explanatory (one reason why we have the videos), we are more than happy to see them improved based on user experience.

Please don't hesitate to make adjustments (after all it is a wiki) so other users can participate on the gained experience.

17:15, 15 October 2015

I'm not sure I'm currently qualified to give advice given how badly I seemed to break my install! I think the problem was the classic one of following outdated advice and relying on Google search too much.

I started with a fresh install following the video and found Composer to in fact be very good, though I think it would be helpful to be a bit clearer about it's function. I really had no idea what it was even supposed to be doing for quite a while.

I think I'm back on track now anyway, lesson learned that maybe I should keep more abreast of changes (just need to find the time!).

Thanks, S

13:07, 16 October 2015