• I installed rootspersona plugin on WordPress 3.31 today. I verified that the database contained 40 tables and decided to upload a Gedcom file. Before uploading it, I also edited the php.ini file as follows:

    php_value upload_max_filesize 10M
    php_value post_max_size 10M
    php_value max_input_time 300
    php_value max_execution_time 300

    However, I received the following warnings and errors after uploading the Gedcom file:

    Warning: mysql_connect() [function.mysql-connect]: [2002] Only one usage of each socket address (protocol/network address/ (trying to connect via tcp://localhost:3306) in C:\xampp\htdocs\wordpress\wp-content\plugins\rootspersona\php\dao\sql\class-RP-Connection-Factory.php on line 30

    Warning: mysql_connect() [function.mysql-connect]: Only one usage of each socket address (protocol/network address/port) is normally permitted. in C:\xampp\htdocs\wordpress\wp-content\plugins\rootspersona\php\dao\sql\class-RP-Connection-Factory.php on line 30

    Warning: mysql_set_charset() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\wordpress\wp-content\plugins\rootspersona\php\dao\sql\class-RP-Connection-Factory.php on line 32

    Warning: mysql_connect() [function.mysql-connect]: [2002] Only one usage of each socket address (protocol/network address/ (trying to connect via tcp://localhost:3306) in C:\xampp\htdocs\wordpress\wp-content\plugins\rootspersona\php\dao\sql\class-RP-Connection-Factory.php on line 30

    Warning: mysql_connect() [function.mysql-connect]: Only one usage of each socket address (protocol/network address/port) is normally permitted. in C:\xampp\htdocs\wordpress\wp-content\plugins\rootspersona\php\dao\sql\class-RP-Connection-Factory.php on line 30

    Warning: mysql_set_charset() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\wordpress\wp-content\plugins\rootspersona\php\dao\sql\class-RP-Connection-Factory.php on line 32
    could not connect to database
    Fatal error: Uncaught exception ‘Exception’ with message ‘could not connect to database’ in C:\xampp\htdocs\wordpress\wp-content\plugins\rootspersona\php\dao\sql\class-RP-Connection-Factory.php:34 Stack trace: #0 C:\xampp\htdocs\wordpress\wp-content\plugins\rootspersona\php\dao\sql\class-RP-Connection.php(22): RP_Connection_Factory::get_connection(NULL) #1 C:\xampp\htdocs\wordpress\wp-content\plugins\rootspersona\php\dao\sql\class-RP-Query-Executor.php(49): RP_Connection->__construct(NULL) #2 C:\xampp\htdocs\wordpress\wp-content\plugins\rootspersona\php\dao\mysql\class-RP-Mysql-DAO.php(75): RP_Query_Executor::execute_update(Object(RP_Sql_Query)) #3 C:\xampp\htdocs\wordpress\wp-content\plugins\rootspersona\php\dao\mysql\class-RP-Indi-Mysql-DAO.php(114): RP_Mysql_DAO->execute_update(Object(RP_Sql_Query)) #4 C:\xampp\htdocs\wordpress\wp-content\plugins\rootspersona\php\class-RP-Gedcom-Loader.php(157): RP_Indi_Mysql_Dao->update(Object(RP_Indi)) #5 C:\xampp\htdocs\wordpress\wp-content\plugins\rootspersona\php\class-RP-Gedcom-L in C:\xampp\htdocs\wordpress\wp-content\plugins\rootspersona\php\dao\sql\class-RP-Connection-Factory.php on line 34

    Apparently, the database connection was terminated at some stage as the database tables seem to be partially populated(fewer names than expected). Request you to suggest some possible corrective actions ASAP.

    Thanks.

    Imran Husain

    https://www.ads-software.com/extend/plugins/rootspersona/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ihusain

    (@ihusain)

    I was eventually able to reload the Gedcom file by making the following changes:

    1. Opened the file plugin-install.php in the \wordpress\wp-admin\includes
    2. located the line $request = wp_remote_post(‘https://api.www.ads-software.com/plugins/info/1.0/’, array( ‘timeout’ => 15, ‘body’ => array(‘action’ => $action, ‘request’ => serialize($args))) );
    3. Replaced ‘timeout’ => 15 by ‘timeout’ => 60.

    However, I have to check the other functions of this plugin.

    Plugin Author ed4becky

    (@ed4becky)

    Interesting, never had to touch that setting before. wonder if that caused some other mystery errors I have heard about. so the plugin installer has a 15 second timeout. Hmmm

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: rootsPersona] Warnings/ Fatal Error’ is closed to new replies.