> $dbw = wfGetDB( DB_SLAVE );
> $dbw->insert( 'omp_master.strain', array( 'id' => null, 'name' =>
$formData['strain_name_field'] ) );

You should use wfGetDB( DB_MASTER ) to get a DB handle for writing.


On Tue, Apr 23, 2019 at 9:16 AM Jim Hu <[email protected]> wrote:

> It’s a custom extension used by my lab only, and while a version is on our
> public github, it’s going to be hard to follow because of entanglement with
> some other custom code libraries we use that wrap the WikiPage class to
> accommodate our use of the TableEdit extension. If you want to look anyway,
> it’s here:
>
>
> https://github.com/microbialphenotypes/OMPwiki/blob/master/OMP/specialpages/StrainSpecialPage/SpecialNewPage.php
>
> But it would probably be more useful for you to wait until I can pare it
> down to something that is minimal to see if I can isolate the problematic
> part and then push that to github.
>
> I was hoping someone had seen a similar problem with Special page
> development and had a simpler answer!
>
> Thanks!
>
> Jim
>
> > On Apr 23, 2019, at 10:29 AM, Jaime Crespo <[email protected]>
> wrote:
> >
> >>> For one of our custom wikis we have a Special Page that creates new
> pages
> >>> based on form input. This used to work in MW1.23 but in the long
> overdue
> >>> update to MW1.31 it stopped working.
> >
> > I am not familiar with Special:StrainNewPage, I am guessing that is
> > custom code not available from a standard extension? If it is not
> > private and you could share that custom code (or at least part of it)
> > maybe someone can help you better to see what is the problem in your
> > case. :-)
> >
> > _______________________________________________
> > Wikitech-l mailing list
> > [email protected]
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
>
> _______________________________________________
> Wikitech-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to