[Isis-users] Script dataentry/carga_iso.php ABCD 2.0f
Adagilson Batista Bispo da Silva
adagilson at cpqam.fiocruz.br
Tue Mar 27 16:47:04 CEST 2018
Once more, You're right.
Config.php
$server_url="http://127.0.0.1:9090"; // URL with port (if not 80)
$postMethod=1; // if set to '1' (or true) ABCD will use POST-method; use with caution
abcd.def
UNICODE=0
PHP.ini:
error_reporting=0
Alterations in php.ini fix it: I can enter new records into my database, but I can't import iso files yet as described yesterday.
$value) echo "$var = $value
"; //die; include("../common/header.php"); ?>
Script: dataentry/carga_iso.php
=0){ sort ($the_array); reset ($the_array); $Url=""; echo "
[...]
Adagilson Silva
Instituto Aggeu Magalhães
Pesquisa na Biblioteca
http://bvsfiocruz.fiocruz.br/
Repositório Institucional ARCA
https://www.arca.fiocruz.br/
________________________________________
De: De Smet Egbert <egbert.desmet em uantwerpen.be>
Enviado: terça-feira, 27 de março de 2018 10:29
Para: Adagilson Batista Bispo da Silva; isis-users em iccisis.org
Assunto: Re: Script dataentry/carga_iso.php ABCD 2.0f
Let's go step by step : I see you are calling the Unicode version of wxis (in cgi-bin/utf8), but I don't think you want to use a Unicode database ? Then switch off Unicode in the dr_path.def file of your database and/or in the general settings of abcd.def.
You can also test further with the line in config.php
//$postMethod=1;
left uncommented, so you will be using 'GET'-method which is simpler/safer.
Egbert de Smet
Universiteit Antwerpen
________________________________________
From: Adagilson Batista Bispo da Silva <adagilson em cpqam.fiocruz.br>
Sent: Tuesday, March 27, 2018 3:25 PM
To: De Smet Egbert; isis-users em iccisis.org
Subject: RE: Script dataentry/carga_iso.php ABCD 2.0f
Thank you very much for replying Egbert De Smet.
Following your advise, I uncomment the lines in question.
But the situation is:
comment out these two code can alllowed me do data entry after login, otherwise (if uncommenting these lines) it will stop at a blank page with the warning:
Warning: file_get_contents(http://127.0.0.1:9090/cgi-bin/utf8/wxis.exe): failed to open stream: Nenhuma conexão pôde ser feita porque a máquina de destino as recusou ativamente. in C:\ABCD\www\htdocs\central\common\wxis_llamar.php on line 67
Adagilson Silva
Instituto Aggeu Magalhães
Pesquisa na Biblioteca
http://bvsfiocruz.fiocruz.br/
Repositório Institucional ARCA
https://www.arca.fiocruz.br/
________________________________________
De: De Smet Egbert <egbert.desmet em uantwerpen.be>
Enviado: terça-feira, 27 de março de 2018 05:04
Para: Adagilson Batista Bispo da Silva; isis-users em iccisis.org
Assunto: Re: Script dataentry/carga_iso.php ABCD 2.0f
Hi,
first of all I doubt whether the changes you made will work correctly all over :
- the $server_url is actually one of the most important variables telling the script 'wxis_llamar.php' (which is used for every call to a database, e.g. searching, displaying, editing records) uses it;
- the $postMethod variable defines whether the same script wxis_llamar.php uses either the post-method for connecting to the server or the get-method. As is known, post-method allows bigger (longer) chunks of data to be passed on in the URL, so with very large search sets e.g. it will make a difference. However in most 'classic' library automation requests the get-method is o.k. and probably that is what you are using now without noticing.
Which 'warnings' were removed by doing this ? That is interesting...
Generally speaking you would be much better off changing your php.ini settings for the 'error_reporting' to set it to what PHP itself suggests for non-development situations. Then you won't be bothered by warnings and notices which are actually not relevant for the user.
While you are there (in php.ini), could you do a small test for the second problem you mention : switch to 'ON' the variable 'short_open_tag' and let me know whether still the code-text is appearing in your screen. I assume that is what is happening, they are not 'warnings' or 'notices' but parts of the script appearing on the screen. Then also tell me which script exactly you are using (there are different ISO import scripts). The old ABCD scripts were not ready for the recommended setting 'short_open_tag=On', so we tried to remove all instances of the code '<?' without the subsequent 'php' as is required now : '<?php ' but there were thousands of such instances in hundreds of scripts, they are difficult to search for. That is a typical situation where script text appeared - unwantedly - into the screens.
I need your help because nowhere in my set of scripts can I find e.g. the string "; //die; include("../common/header.php"); ?>, so again I have to wonder where you got that from.
##
Script dataentry/carga_iso.php warning as described in prevous e-mail just happens when I try to charge iso files (when mentioned code lines are commented out).
Egbert de Smet
Universiteit Antwerpen
________________________________________
From: Adagilson Batista Bispo da Silva <adagilson em cpqam.fiocruz.br>
Sent: Monday, March 26, 2018 9:04 PM
To: De Smet Egbert; isis-users em iccisis.org
Subject: Script dataentry/carga_iso.php ABCD 2.0f
Thanks for every help.
I did fix some warnings uncommenting ABCD 2.0f's config.php file:
// Main server configuration
//$server_url="http://127.0.0.1:9090"; // URL with port (if not 80)
//$postMethod=1;
I don't know whether it's correct or not. It Works.
It allowed me to login and enter cataloging module.
By now I'm facing new warning messages, trying to import iso files:
$value) echo "$var = $value
"; //die; include("../common/header.php"); ?>
[http://localhost/central/images/defaultButton_iconBorder.gif] <http://localhost/central/dataentry/administrar.php?base=>
<http://localhost/central/documentacion/ayuda.php?help=/importiso.html> Script: dataentry/carga_iso.php
=0){ sort ($the_array); reset ($the_array); $Url=""; echo "
".$msgstr["deldb"].""; echo "
".$msgstr["tolinux"]; echo "
".$msgstr["toansi"]; echo "
".$msgstr["importiso_mx"]; echo "
".$msgstr["mnt_gli"]."
"; echo "
".$msgstr["seleccionar"]." ".$msgstr["cnv_iso"]."
"; echo "
"; while (list ($key, $val) = each ($the_array)) { echo ""; } echo "
".$msgstr["seleccionar"]." ".$msgstr["eliminar"]." ".$msgstr["ver"]." ".$msgstr["archivo"]."
[\"".$msgstr["selformat"]."\"] [\"".$msgstr["eliminar"]."\"] [\"".$msgstr["ver"]."\"] $val
"; } echo "
"; echo "
".$msgstr["subir"]." ".$msgstr["cnv_iso"]. "
ABCD 2.0f
XAMP v3.2.2
Windows 10
Adagilson Silva
Instituto Aggeu Magalhães
Pesquisa na Biblioteca
http://bvsfiocruz.fiocruz.br/
Repositório Institucional ARCA
https://www.arca.fiocruz.br/
More information about the isis-users
mailing list