Activity for Peter

  • Peter Peter posted a comment on discussion Testers Wanted

    https://sourceforge.net/projects/cgtk/ CGTK is a set of C and C + GTK code examples ready to use as stand alone or as a light weight framework. Tested on Linux Mint 19.2. Additional testers welcome across other versions of Linux.

  • Peter Peter posted a comment on discussion Development

    Hello BC, I am looking at Openbiblio 1.0 on a machine that has PHP 7.2. The fixes for 7.2 are purely to make Openbiblio work to the point where I can look at the reports. I noted the changes in this forum purely to help anyone facing the same situation. Peter

  • Peter Peter posted a comment on discussion Development

    Hello Fred, My machines are running PHP 7.2.7-0ubuntu0.18.04.2 built July 4, 2018. 7.2 produces warnings for the code parts that will disappear soon. I do not mind running the compatibility tests while I explore Openbiblio. I am also learning to use TortoiseHg, having not used Tortoise since TortoiseCVS. Bitbucket is also "new" as everything else I look at is on Github. Peter

  • Peter Peter posted a comment on discussion Development

    tcpdf.php line 12579: while (list($key, $val) = each($prop)) { each() is out. The latest tcpdf.php uses: foreach($prop as $key => $val) {

  • Peter Peter posted a comment on discussion Development

    1.0 PHP 7.2 BiblioRows.php line 84: $r = $this->iter->fetch_assoc(); It looks like it should be: $r = $this->iter->fetch(PDO::FETCH_ASSOC); The next row is: if ($r === NULL) return $r; $r is FALSE when there are no rows returned.

  • Peter Peter posted a comment on discussion Development

    catalog/bulkDelForm.php: Warning: Declaration of MarcParser::parse($input) should be compatible with MarcBaseParser::parse($input = '') in classes/Marc.php on line 627 I changed line 440 from: public function parse($input) { to public function parse($input = '') { line 209 from: ."last_change_userid = $_SESSION['userid']," to ."last_change_userid = " . $_SESSION['userid'] . "," Line 218 ."status_cd = '$_POST['status_cd']'," to ."status_cd = '" . $_POST['status_cd'] . "'," Line 256: . "status_cd =...

  • Peter Peter posted a comment on discussion Development

    The next response is: Warning: Use of undefined constant haveConst - assumed 'haveConst' (this will throw an Error in a future version of PHP) in dbParams.php on line 7 10.1.34-MariaDB-0ubuntu0.18.04.1 dbParams.php: $this->dsn["mode"] = haveConst; $this->dsn["mode"] = 'haveConst'; install/startupSrvr.php: '$this->dsn["mode"] = ' . 'haveConst' ."; \n" '$this->dsn["mode"] = ' ."'". 'haveConst' ."'; \n" classes/Queryi.php: $this->dsn["mode"] == 'haveconst'; $this->dsn["mode"] = 'haveconst'; classes/DbCore.php:...

  • Peter Peter posted a comment on discussion Development

    install/index.php stalls at Testing connection to server. The response includes: Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in classes/UpgradeQuery.php on line 501 I changed 501 from: $sql = "SELECT * FROM $copyName.biblio_field WHERE (bibid=$bib['bibid']) ORDER BY tag "; to: $sql = "SELECT * FROM $copyName.biblio_field WHERE (bibid=" . $bib['bibid'] . ") ORDER BY tag ";

  • Peter Peter posted a comment on discussion Development

    PHP 7.2 Openbiblio 1.0: Warning: Use of undefined constant OBIB_DATABASE - assumed 'OBIB_DATABASE' (this will throw an Error in a future version of PHP) in shared/global_constants.php on line 59 I searched for and did not find OBIB_DATABASE defined anywhere.

  • Peter Peter posted a comment on discussion Development

    PHP 7.2 complains about the following code due to the constructor function using the same name as the class. Replacing the function name with the new format, __construct(), is not backwards compatible. class BiblioHoldQuery extends Query { var $_rowCount = 0; var $_loc; function BiblioHoldQuery() { $this->Query(); $this->_loc = new Localize(OBIB_LOCALE,"classes"); } Here is an easy solution until everyone has updated to PHP 7. You keep the old name and the new name. PHP 7.2 does not produce a warning....

  • Peter Peter posted a comment on discussion Help

    I found Dooble in /usr/local/Dooble and added a menu entry to start dooble.sh.

  • Peter Peter posted a comment on discussion Help

    I installed Dooble 2.1 in Linux Mint 18.2 Cinnamon using the .deb file. I cannot find Dooble in the menu. How do you start Dooble?

  • Peter Peter posted a comment on ticket #92

    You could change your $msg to $message and toStr to getMessage or __toString

  • Peter Peter posted a comment on ticket #92

    Look in my patch around line 3095 or search for the following line. if (!class_exists('Error'))

  • Peter Peter posted a comment on ticket #92

    PHP 7 has an Error class. At the start of your code, you need to detect 7 and load your Error class if not 7. Split your Error class into Error and Errors. After you load Error, or not, load Errors to extend error into dbError etc. make your Error class compatible with PHP 7 Error for your basic functions. Make your extended error classes compatible with the new Error class.

  • Peter Peter posted a comment on ticket #80

    See https://sourceforge.net/p/obiblio/patches/92/

  • Peter Peter modified a comment on discussion Feature Requests

    "I was thinking about package OpenBiblio for Debian, but 0.7.2 doesn't work with PHP7" I have 0.7.2 running with PHP 7 and MySQL 5.7. The patch is in another post. https://sourceforge.net/p/obiblio/patches/92/

  • Peter Peter posted a comment on discussion Feature Requests

    "I was thinking about package OpenBiblio for Debian, but 0.7.2 doesn't work with PHP7" I have 0.7.2 running with PHP 7 and MySQL 5.7. The patch is in another post.

  • Peter Peter posted a comment on ticket #92

    Here are the changes for 0.7.2

  • Peter Peter posted a comment on ticket #92

    Ok, I have OpenBiblio 0.7.2 open in PHP 7. The install worked. All MySQL code is in one class with a parallel class using mysqli.

  • Peter Peter posted a comment on ticket #92

    I am looking at the published 0.7 version. There are a few things that could be changed to make it compatible with PHP 7 without removing compatibility with old releases. As an example, the Error class could be made interchangeable with the PHP 7 Error class and not loaded when using PHP 7.

  • Peter Peter posted a comment on ticket #92

    The problem for people with older systems is PDO problems in earlier releases. You can easily set up a mysqli class next to the mysql code in OB 0.7. Everyone can update from PHP 4 to PHP 5. Something like OB 1.0 can set PHP 5 as the minimum and use PDO.

  • Peter Peter posted a comment on ticket #92

    The mysql calls can be replaced with a class that loads the mysql code or mysqli code based in which is available. The same code could eventually upgrade to PDO.

  • Peter Peter created ticket #6

    Grsync 1.2.4 as superuser, rsync does not pause or stop

1