-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it work on MW 1.34 + SMW 3.1.5 #59
Comments
@krabina Ah, I thought we had it working with SMW 3.x, but either we missed something or perhaps something in later MW, has happened. Hope to have a look soonish (not before Sep 17). Many thanks for reporting! |
I'm on this now ... |
Hmm, did a little test script, which I document here for reference: <?php
require "vendor/semsol/arc2/ARC2.php";
$store = ARC2::getStore(array(
'db_name' => 'smw',
'db_user' => 'smw',
'db_pwd' => '*******',
'db_host' => '127.0.0.1',
'cache_enabled' => true // <== activates cache
));
echo "<pre>";
print_r($store);
echo "</pre>"; It returns:
That |
Ok, if I add one line, after creating the store: $store->createDBCon(); ... then I get in the Nginx log:
Confusing, as I can't see anything wrong there. Digging on. |
I filed an issue over at the ARC2 repo, in case they have some hints: semsol/arc2#140 |
Can report that it works now, locally, with branch 59-make-work-with-mw-1.34. Now just trying to be able to run the tests. |
One of the ARC2 maintainers here. @samuell wrote:
Thats not true. In our travis.yml you can find all configurations we test against. Short version is here: https://github.com/semsol/arc2#database-systems Also:
I wrote the adapter layer for ARC2 to support PDO besides mysqli. EDIT: I overlooked the |
Hi @k00ni
Thanks for the clarification!
The problem is solved now, in 06a151f. The fault is mine, I had missed this new part in the getting started guide, after the // since version 2.3+
$store->createDBCon(); I think I was a bit confused as the README.md is missing that part. Maybe a note about that, for database backed stores, could be of use in the README.md? |
Current status:
|
Strange, now i get error:
... when trying to import the example turtle content. Didn't get it just before. Perhaps some caching problem that is adding extra confusion. Checking in to semsol/arc2#80 EDIT: Solved in a612852 |
Latest status #63 😑 EDIT: Solved. |
For information, I was able to run this extension on MW 1.40.0-alpha + SMW master (post-4.0.2). It does not work out-of-the-box with the master branch, but it works with the branch 59-make-work-with-mw-1.34 or even better with the branch 59-make-work-with-mw-1.34 of simontaurus. Imho, this branch could be promoted as master, and it would fix #56, #59, #62. However, this extension needs some maintenance. I began creating the extension.json file and will propose it soon as a PR. |
As said, I did some maintenance work on this extension in addition of the branches mentionned above and it solves this issue (well, I guess it may remain some minor issues). It is available on WikiValley’s fork together with the fork of ARC2. |
@Seb35 That's fantastic! If you are able to package it up as a clean PR, I would be happy to have a look at merging it here as well! |
Great! 🤩 But it’s not as easy as a PR on this MediaWiki extension since I had to modify ARC2:
|
I've updated the extension page on MediaWiki.org to point to the WikiValley fork, since that seems preferable to pointing to an admittedly incompatible repository. |
Are there any plans to update this to make it work im MediaWiki 1.31 and SMW 3.x?
Installation runs smooth, but
The text was updated successfully, but these errors were encountered: