• Resolved krzychel40

    (@krzychel40)


    Hi
    I have a problem with a few things.

    1. Plug the WP 4.1 throws mistake seven times the same message:
    Notice: Undefined index: hook_suffix in /home/krzychel/domains/krzychel.wk2.pl/public_html/home/krzychel/domains/krzychel.wk2.pl/public_html/bib4/wp-admin/includes/screen.php on line 387

    In WP 3.5 the problem occurs.

    2. I do not know how to adjust indyvidual fields

    State: Zip:

    Polish terms to where

    Zip code is in the form of eg. 01-123
    State: means locally 3-4 letters eg. Podl, maz,

    best regards

    https://wordpress.org/plugins/weblibrarian/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Robert Heller

    (@robertpheller)

    I don’t know what is causing problem #1.

    For #2, you will need to hack the code:

    includes/database_code.php — this is where the database fields are defined.

    includes/WEBLIB_Patrons_Admin.php — this is where the form validation is implemented.

    Thread Starter krzychel40

    (@krzychel40)

    Thank you for your help.

    After changing the file includes / WEBLIB_Patrons_Admin.php
    When I add a new reader shows me the message:

    inserted with Patron Id -1.

    and the reader is not added . The problem occurs only when you change the field after the change over state zip field is all about

    Plugin Author Robert Heller

    (@robertpheller)

    If you changed the PHP code and this is causing problems, you will have to debug the PHP code. What *exactly* did you change?

    Thread Starter krzychel40

    (@krzychel40)

    I change:

    file WEBLIB_Patrons_Admin.php

    line: 353
    if ($newstate == '' || strlen($newstate) != 3)
    line: 571
    maxlength="<strong>3</strong>"
    and
    Table: WP_LIB_weblib_patrons.state to char(3) utf8_bin

    thanks!

    Plugin Author Robert Heller

    (@robertpheller)

    Did you deactivate and reactivate the plugin? You might need to delete the patron table to force its recreation. Also did you update line 74 of includes/database_code.php?

    if (strlen($this->record['state']) != 2) return(-1);

    Thread Starter krzychel40

    (@krzychel40)

    Yes, thanks!

    Already about this matter was.
    This is a way to report an error (-1)?

    Plugin Author Robert Heller

    (@robertpheller)

    The low-level insert methods for each of the DB classes (named ‘store’) return either a new (positive) ID on successful insertion or update and a negative value if the insert or update failed (for whatever reason). In this case, the Patron DB class’s store method is checking to be sure that the state field is on the proper size. Other checks include checking for non-empty fields, etc.

    Thread Starter krzychel40

    (@krzychel40)

    Ok, I understand.
    And is there a simple way to unlock the possibilities bbPress forum moderation by Librarian, Ad-Senior and Volunteer etc?

    Wants to add a forum to my library page. I can even chat: D

    Thread Starter krzychel40

    (@krzychel40)

    Thank you very much for your help

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘WP 4.1 throws mistake’ is closed to new replies.