Simplified input test file like so:

debtor_no,branch_code,reference,date,payment_id,sales_type_name,dimension_id,dimension2_id,item_code,item_description,quantity,unit,price,discountpercentage,freightcost,delfrom,deldate,delto,deladdress,contactphone,email,custref,shipvia,comments,ex-rate,prep_amount
1,1,"002/2019",2019/05/11,3,"Retail",1,2,"5550","Flight",1.0000,"Each",26.5000,0,0,"ID List",2019/05/11,"Robert G Rackl","Bergseth Field","","","10001",0,"",0,0
1,1,"003/2019",2019/05/11,3,"Retail",1,2,"5550","Flight",1.0000,"Each",26.5000,0,0,"ID List",2019/05/11,"Robert G Rackl","Bergseth Field","","","10001",0,"",0,0
1,1,"004/2019",2019/05/11,3,"Retail",1,2,"5550","Flight",1.0000,"Each",26.5000,0,0,"ID List",2019/05/11,"Robert G Rackl","Bergseth Field","","","10001",0,"",0,0
1,1,"005/2019",2019/05/11,3,"Retail",1,2,"5550","Flight",1.0000,"Each",26.5000,0,0,"ID List",2019/05/11,"Robert G Rackl","Bergseth Field","","","10001",0,"",0,0
1,1,"006/2019",2019/05/11,3,"Retail",1,2,"5550","Flight",1.0000,"Each",26.5000,0,0,"ID List",2019/05/11,"Robert G Rackl","Bergseth Field","","","10001",0,"",0,0
1,1,"007/2019",2019/05/11,3,"Retail",1,2,"5550","Flight",1.0000,"Each",26.5000,0,0,"ID List",2019/05/11,"Robert G Rackl","Bergseth Field","","","10001",0,"",0,0
1,1,"008/2019",2019/05/11,3,"Retail",1,2,"5550","Flight",1.0000,"Each",26.5000,0,0,"ID List",2019/05/11,"Robert G Rackl","Bergseth Field","","","10001",0,"",0,0
1,1,"009/2019",2019/05/11,3,"Retail",1,2,"5550","Flight",1.0000,"Each",26.5000,0,0,"ID List",2019/05/11,"Robert G Rackl","Bergseth Field","","","10001",0,"",0,0

Strangely, processing now stops after showing first two (instead of three) invoices in green.
Running PHP version 7.2; tried going to 5.6 - no difference.

Here are some settings in php.ini: (no changes made)
max_input_vars=4000
memory_limit=512M
report_memleaks = on
;sysvshm.init_mem  [commented out]
opcache.memory_consumption=64
opcache.interned_string_buffer=4
opcache.max_wasted_percentage=5
opcache.revalidate_freq=2
opcache.preferred_memory_model=    [left empty]
opcache.protect_memory=0
opcache.mmap_base=      [left empty]
opcache.file_cache=     [left empty]
opcache.file_cache_only=0

Here are some settings in .htaccess: (no changes made)
php_value memory_limit 512M
php_value post_max_size 512M
php_value error_log "/home/pugets12/logs/FA_errors.log"    [last written to in May 2020]
php_value max_input_vars 4000
php_value error_reporting E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT
php_flag display_errors On
php_flag display_startup_errors Off
php_flag log_errors On

Any suggestions?

Hmm ... Thanks for the investigation apmuthu but after removing all 12 backticks and importing again, the problem is exactly the same. What should I do?

I am coming back to this after not using it for several months. I am trying to import a direct sales .csv file with line 1 containing the headers and lines 2 through 5 containing the data, and line 6 being empty, like so:

Line 1:

debtor_no,branch_code,reference,date,payment_id,sales_type_name,dimension_id,dimension2_id,item_code,item_description,quantity,unit,price,discountpercentage,freightcost,delfrom,deldate,delto,deladdress,contactphone,email,custref,shipvia,comments,ex-rate,prep_amount

Line 2:

4,4,"003/2019",2019/05/11,3,"Retail",1,2,"5550","Flight on 2019/05/11 15:32, tow by 3TM, rel @ 3600 ft, Dur 116 min, CC F. Launch $:  32.00 + ( 2500 - 1000 = 1500 ft) x 0.0140 = 53.00, 50 % split -> 26.50",1.0000,"Each",26.5000,0,0,"ID List: INVLINES:155, INVOICES:109",2019/05/11,"Paul `R` Caspell","Bergseth Field","","","10018",0,"",0,0

Line 3:

4,4,"003/2019",2019/05/11,3,"Retail",1,2,"5510","Flight on 2019/05/11 15:32 with First Pilot Robert `G` Rackl, glider PW-6, rel @ 3600 ft, Dur 116 min, CC F. Rental $:  12.00 + (116 - 20 = 96 min) x 0.6000 = 69.60 rounded up to 70.00, 50 % split -> 35.00",1.0000,"Each",35.0000,0,0,"ID List: INVLINES:156, INVOICES:109",2019/05/11,"Paul `R` Caspell","Bergseth Field","","","10018",0,"",0,0

Line 4:

1,1,"002/2019",2019/05/11,3,"Retail",1,2,"5550","Flight on 2019/05/11 15:32, tow by 3TM, rel @ 3600 ft, Dur 116 min, CC F. Launch $:  32.00 + ( 2500 - 1000 = 1500 ft) x 0.0140 = 53.00, 50 % split -> 26.50",1.0000,"Each",26.5000,0,0,"ID List: INVLINES:153, INVOICES:108",2019/05/11,"Robert `G` Rackl","Bergseth Field","","","10001",0,"",0,0

Line 5:

1,1,"002/2019",2019/05/11,3,"Retail",1,2,"5510","Flight on 2019/05/11 15:32 with Second Pilot Paul `R` Caspell, glider PW-6, rel @ 3600 ft, Dur 116 min, CC F. Rental $:  12.00 + (116 - 20 = 96 min) x 0.6000 = 69.60 rounded up to 70.00, 50 % split -> 35.00",1.0000,"Each",35.0000,0,0,"ID List: INVLINES:154, INVOICES:108",2019/05/11,"Robert `G` Rackl","Bergseth Field","","","10001",0,"",0,0

Line 6:

Problem: Doing a 'trial' import of this file. After reading lines 2, 3, and 4 ok (green messages echoing  the data in the lines), line 5 is ignored, i.e., there is no response to it. When I exchange lines 2/3 with lines 4/5 the same thing happens: what was in line 5 is now in line 3 and gets echoed in a green message, but what was in line 3 is now in line 5 and is ignored. When I try to make the input .csv file longer I get the same problem: first 3 lines are echoed in green, remainder is ignored.

Thanks! smile

I have not changed the default reference pattern {001}/{YYYY} for sales invoices that I wish to import via csv file. An example is 001/2020. I can imagine the situation where 999 reference numbers in one year will not be enough. Is it ok if the 3 digits expand to 4 or even more digits? Or do I have to change the reference pattern to something like {00001}/{YYYY}?

Yes - thank you. Use two different browsers - that's the way. Tested and found that it works.

I just discovered that I cannot work with company_1 and company_2 in two different frontaccounting windows at the same time on the same computer. When I am logged in to company_2 and then open another window and log in to company_1, the window with company_2 changes to company_1. Is this by design? Is there a workaround to do what I want? I can think of one awkward workaround: have another computer nearby for working with the other company. I hope there is something better ... ?

To my recent FA 2.4.8 installation (see https://frontaccounting.com/punbb/viewtopic.php?id=8755 post #13 [Import of Direct Sales Invoice from csv fails]) I added the Import Multiple Journal Entries extension, with the modification described in https://frontaccounting.com/punbb/viewt … 547#p31547 [Providing fix for Import Multiple Journal Entries module in v2.4rc1 by boxygen]. My test input csv file looks like this:

entryid,date,reference,accountcode,dimension1,dimension2,amount,memo,person_id
1,2016/12/31,101/2016,3100,001/2020,002/2020,-69.00,"Initial Balance xferred from QBO - Robert Rackl",1
1,2016/12/31,101/2016,1200,001/2020,002/2020,69.00,"Initial Balance xferred from QBO - Robert Rackl",1
2,2016/12/31,102/2016,3100,001/2020,002/2020,247.40,"Initial Balance xferred from QBO - Marc Brooks",2
2,2016/12/31,102/2016,1200,001/2020,002/2020,-247.40,"Initial Balance xferred from QBO - Marc Brooks",2

When I import this file the response is a simple 'Back' link under the heading 'Import Multiple Journal Entries / Deposits / Payments'; nothing else. No error message on the screen or in the log file. No modifications made in the database.

Account codes 3100 and 1200 exist in the CoA. The apparently inconsistent use of minus-signs in front of amounts is intentional because Robert had a negative accounts receivable balance. Person_ids 1 and 2 exist in field debtor_no in table 1_cust_branch. Contents of table 1_dimensions:

  id  reference  name  type_  closed  date_       due_date
   1  001/2020   D1        1       0  2000-01-01  2199-12-31
   2  002/2020   D2        2       0  2000-01-01  2199-12-31

$debug is set to 1 in config.php . Date format is set to YYYY/MM/DD.

Please suggest ways for troubleshooting this problem.

We have a resolution, but some kind of software change in the import_transaction module is still required to handle 'prepayment amount'.

I started over the installation of FrontAccounting by doing a manual install instead of using softaculous at InMotion Hosting (see posts 2 and 3 of https://frontaccounting.com/punbb/viewtopic.php?id=8789 ). I installed and activated the import_transactions module; gave several roles access to the import_transactions module. Importing journal entries worked well. The attempt to import a direct sales invoice failed, but in a different way from before: even during the trial import, the progress bar kept going indefinitely without messages on the screen or in the FA error log. As described before, I modified line 220 of import_transactions.php to read:

$_SESSION['Items'] = new import_sales_cart($type, 0, false); $_SESSION['Items']->prep_amount = 0.0E0;

i.e., setting the prepay amount to zero. After that, the direct sales invoice import functioned properly.

Setting the prepay amount to zero is ok for my installation, but most likely not for everyone interested in this module.

Now - - on to solving the next problem!=D

The issue here was the use of softaculous for installing Frontaccounting in shared Linux hosting provided by InMotion Hosting. I did an install from SourceForge using frontaccounting-2.4.8.tar.gz which succeeded in creating company 0 as well as company 1. Therefore: do not use softaculous for installing frontaccounting at InMotion Hosting.

After a fresh install of FA 2.4.8, I get this error when trying to create a new company (admin/create_coy.php):

SQL script execution failed in line 16:
Cannot create new company due to bugs in sql file.

Details how I got here:
** Selected PHP version 5.6
** This is a continuation of topic "Import of Direct Sales Invoice from csv fails" (https://frontaccounting.com/punbb/viewtopic.php?pid=37390#p37390), but the subject is now different. I could no longer use the previous installation; carelessly, I selected PHP version 5.3 instead 5.6 as recommended by apmuthu. After that I could no longer log into my FA installation. Decided to start over.
** Used softaculous at InMotion Hosting to install FA 2.4.8.
** Copied php.ini to the FA root folder. Changed display_errors to On, track_errors to On, and 'error_log = /dev/null' to 'error_log = /logs/FA_errors.log'.
** 2.    Obtained FA24_post_release_fixes_2020-04-07.zip from https://frontaccounting.com/punbb/viewtopic.php?pid=37005&login=1 , post number 4. Uploaded those files into their respective directories in FA after renaming the superseded files by appending .OLD to each file name.
** From inside FA, added the module imports_transactions which should be the latest after the official repository update reported in post #10 of https://frontaccounting.com/punbb/viewtopic.php?pid=37390#p37390 .
** Modified line 220 of import_transactions.php to read:

$_SESSION['Items'] = new import_sales_cart($type, 0, false); $_SESSION['Items']->prep_amount = 0.0E0;

** Entered company setup data for  Company 0
** Tried to create Company 1; got error: SQL script execution failed in line 16: Cannot create new company due to bugs in sql file.

Thank you for the updated import_transactions module!

After using it to replace the import module, I still had the prep_amount error. After some code analysis (I am not a PHP programmer but know other languages [C, VB, C#] I modified line 220 in import_transaction.PHP to read

    $_SESSION['Items'] = new import_sales_cart($type, 0, false); $_SESSION['Items']->prep_amount = 0.0E0;

because a zero prepay amount is fine for me for the time being. This got me past the error.

I then had to change in the csv input file the values for dimension_id and dimension2_id from strings to integers (between "Retail" and "5551"). The file now looks like this (2 lines):

customer_id,branch_No,reference,date,payment_id,sales_type_name,dimension_id,dimension2_id,item_code,item_description,quantity,
unit,price,discountpercentage,freightcost,delfrom,deldate,delto,deladdress,contactphone,email,custref,shipvia,comments,ex_rate,
prep_amount
1,1,"2345","2020/04/11",2,"Retail",1,2,"5551","Pattern tow",1,"Each",32.00,0,0,"DEF","2020/04/11","Cust","Bergseth Field","206 660 0019","info@pugetsoundsoaring.org","001",0,"Robertos pattern tow",1,0

Unfortunately, the import still fails without reporting an error in the PHP error log: In the UI, green messages say that the import was successful. Checking the database - table 1_sales_orders has one record with contents from the csv import file. But table 1_sales_order_details remains empty; a sales order inquiry shows no records.

There is an error reported in the PHP log, but I believe it is unrelated:
[03-May-2020 09:41:35 America/Los_Angeles] 1:admin:import_transactions.php:399: fclose() expects parameter 1 to be resource, null given

There are no errors reported in the system log that logs the GET and POST requests for the FA website.

What should I do next, please?

I removed the extra spaces in the import file SampleSingleLineSalesOrder.csv, and I added a field at the end for prep_amount with a value of 0; it now looks like this:

customer_id,branch_No,reference,date,payment_id,sales_type_name,dimension_id,dimension2_id,item_code,item_description,quantity,unit,price,discountpercentage,freightcost,delfrom,deldate,delto,deladdress,contactphone,email,custref,shipvia,comments,ex_rate,prep_amount
1,1,"2345","2020/04/11",2,"Retail","","","5551","Pattern tow",1,"Each",32.00,0,0,"DEF","2020/04/11","Cust","Bergseth Field","206 660 0019","info@pugetsoundsoaring.org","001",0,"Robertos pattern tow",1,0

The green display of processing shows that the last field in the import .cvs file is ignored (see picture SalesOrderImportProcessing.gif ( https://1drv.ms/u/s!AvoFL8QrGVaTsFnatwmQ9QMfyZfY?e=Rebdze )). The INSERT error in the log file is exactly the same as before.

File import_transactions.php has this statement in line 198:
    display_notification_centered(_("Processing line $line ($customer_id, $branchNo, $reference, $date, $payment_id, $sales_type_name, $dimension_id, $dimension2_id, $item_code, $item_description, $quantity, $unit, $price, $discountpercentage, $freightcost, $delfrom, $deldate, $delto, $deladdress, $contactphone, $email, $custref, $shipvia, $comments, $exrate) in import file '{$_FILES['imp']['name']}')"));

which looks like it produces the output shown in file SalesOrderImportProcessing.gif ( https://1drv.ms/u/s!AvoFL8QrGVaTsFnatwmQ9QMfyZfY?e=Rebdze ), i.e., there is no field for prep_amount. The later calls to copy_to_cart (lines 224 and 235) also do not have an argument for prep_amount. It's not surprising then that a value for this field is missed later on when we try to write to the database.

Might I have uncovered a bug, or am I working with the wrong version of the import module?
As I said earlier, I updated module import_transactions according to https://frontaccounting.com/punbb/viewtopic.php?pid=31790#p31790 (post by apmuthu at 2017-12-25 12:50:55 am, post ID 117 in that thread) which did fix another error I had run into.

Here is the error:

[27-Apr-2020 13:35:45 America/Los_Angeles] <b>DATABASE ERROR :</b> order Cannot be Added<br>error code : 1366<br>error message : Incorrect double value: '' for column `pugets12_fron528`.`1_sales_orders`.`prep_amount` at row 1<br>sql that failed was : INSERT INTO 1_sales_orders (order_no, type, debtor_no, trans_type, branch_code, customer_ref, reference, comments, ord_date,
        order_type, ship_via, deliver_to, delivery_address, contact_phone,
        freight_cost, from_stk_loc, delivery_date, payment_terms, total, prep_amount)
        VALUES ('1','0','          1', '30','        1', '2345','auto','Robertos pattern tow','2020-04-11', '1', '        0','Cust','Bergseth Field', '206 660 0019', '0', 'DEF', '2020-04-11','         2','32','')<br><br><br>

But the template .csv file does not contain a field for prep_amount .

Hang on, please! Just found definition of VARLOG_PATH, and found error logs in /tmp directory. Will report on what they say ...l

Try trial first and then without it: Yes, I do that routinely. I get green messages, same either way; no red messages.
Platform: webserver is CloudLinux 7.7, cPanel version 86.0.16. Database server: server type = MariaDB, database client version: libmysql 5.6.43; PHP version 7.3.6.
I applied the post release fixes.
There was no PHP.ini file. I copied one (presumably the standard one provided by the hosting company) into the FrontAccounting root directory. Made these changes: display_errors = On ; track_errors = On ; error_log = /home/pugets12/logs/FA_errors.log .
Made no error-logging related changes in config.PHP.

With the above changes, there was no change in FA import_transactions behavior, nor could I find any errors logged in the routine system logging file (in this case /logs/frontaccounting.pugetsoundsoaring.org-Apr-2020.gz). File /logs/FA_errors.log was not written.

Don't know how to go about check db permissions are getting percolated into the extension and file and folder permissions: what I can report is that, when I descend into modules/import_transactions all folders have permission 0755 and all files have 0644.
I am puzzled about constant VARLOG_PATH in config.PHP . Is it set to root/logs ?

Just starting out with fresh install of FA 2.4.8.
In Display Setup chose date format YYYY/MM/DD
Updated module import_transactions according to https://frontaccounting.com/punbb/viewtopic.php?pid=30301#p30301 (post by apmuthu at 2017-12-25 12:50:55 am, post ID 117 in that thread)
Defined a customer with branch; shows up in table 1_cust_branch
Did a database backup
Defined an item category for service items; shows up in 1_stock_category
Defined an item in that category; shows up in 1_stock_master
Manually entered a direct sales order for the customer and item defined above; is reflected in tables 1_refs and 1_sales_orders.
Did Import of Journal Entries - success (they show up in reports)
Did a database restore
Redefined same item category and same item.
Imported Direct Sales order for that customer and that item from csv file, turned off trial run check mark; success of processing signaled in green; but there is no change in database tables 1_refs or 1_sales_orders (they stayed empty).

csv file imported:
customer_id,branch_No,reference,      date,payment_id,sales_type_name,dimension_id,dimension2_id,item_code,item_description,quantity,unit,price,discountpercentage,freightcost,delfrom,   deldate,delto,      deladdress,  contactphone,                     email,custref,shipvia,               comments,ex_rate
          1,        1,     2345,2020/04/11,         2,         Retail,          "",           "",   "5551",   "Pattern tow",       1,Each,32.00,                 0,          0,    DEF,2020/04/11, Cust,"Bergseth Field","206 660 0019",info@pugetsoundsoaring.org,  "001", Glider,"Roberto's pattern tow",      1

I expected that the import action is reflected in at least tables 1_refs and 1_sales_orders. What might I be doing wrong?

18

(2 replies, posted in Modules Add-on's)

That was it! Thank you so much, Rafat! smile

19

(2 replies, posted in Modules Add-on's)

I am a newbie to frontaccounting and PHP. I have quite a bit of programming experience but not a professional, let’s say an advanced hobbyist. Installed FrontAccounting 2.4.8 a few days ago in a shared hosting environment (InMotion Hosting). Installed Import_transactions and created a new frontaccounting company. Attempt to click on “Import Transactions” under Banking and General Ledger results in Error 404, url is http://frontaccounting.pugetsoundsoaring.org/modules/import_transations/import_transactions.php . File import_transactions.php exists. I checked that the include files listed near the top of that file exist as well; they do. What should I do to get past this error?

Tried to contact Ross Addison import_transactions co-author at frontaccounting@bbqq.co.uk, but came back as 'unknown recipient'.

I just sent a PM to apmuthu.

Following apmuthu's suggestion, I sent a private message to apmuthu on July 12, and another one on July 20. I also sent a private message to poncho1234 on July 24. Because I have not received a reply to any of these, I am wondering whether the messaging system is working ok, or whether I might have done something wrong sending those PMs?

Directory G:\PleskVhosts\rad129.net\pssafrontacc.rad129.net is the root. These users/groups have full control in the root and all subdirectories: Application pool group, Plesk Domain User. Plesk FTP subaccount can only list the folder contents.

I modified index.php as follows:

<?php
/**********************************************************************
    Copyright (C) FrontAccounting, LLC.
    Released under the terms of the GNU General Public License, GPL, 
    as published by the Free Software Foundation, either version 3 
    of the License, or (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
        error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
        ini_set('display_errors', 1);

    $path_to_root=$_SERVER["DOCUMENT_ROOT"];
        echo "index.php: path_to_root = ".$path_to_root."<br />";

        if(is_writable($path_to_root)){
                echo '&nbsp;&nbsp;It IS writable<br />';
        }else{
                echo '&nbsp;&nbsp;It is NOT writable<br />';
        }

    if (file_exists($path_to_root.'/install.html'))
        echo 'index.php: File '.$path_to_root.'/install.html exists<br />';
    if (!file_exists($path_to_root.'/config_db.php'))
        echo 'index.php: File '.$path_to_root.'/config_db.php does not exist<br />';
/*
     if (!file_exists($path_to_root.'/config_db.php'))
        header("Location:".$path_to_root."/install/index.php");

    $page_security = 'SA_OPEN';
    ini_set('xdebug.auto_trace',1);
    include_once("includes/session.inc");
    add_access_extensions();
    $app = &$_SESSION["App"];
    if (isset($_GET['application']))
        $app->selected_application = $_GET['application'];

    $app->display();
*/
?>

Running the website resulted in:

index.php: path_to_root = G:\PleskVhosts\rad129.net\pssafrontacc.rad129.net
  It IS writable
index.php: File G:\PleskVhosts\rad129.net\pssafrontacc.rad129.net/install.html exists
index.php: File G:\PleskVhosts\rad129.net\pssafrontacc.rad129.net/config_db.php does not exist

Then I modified index.php again by moving the /* down a couple of lines so that the existence of config_db.php would be tested. Running the web site resulted in "This site can't be reached" ... ERR_UNSAFE_REDIRECT

Already a couple of days ago I modified the start of install/index.php as follows:

<?php
/**********************************************************************
    Copyright (C) FrontAccounting, LLC.
...    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
$page_security = 'SA_OPEN';
$path_to_root=$_SERVER["DOCUMENT_ROOT"];
echo "install/index.php: path_to_root=".$path_to_root."<br>";
die("Dies intentionally in install/index.php");

if (file_exists($path_to_root.'/config_db.php'))
    header("Location: $path_to_root/index.php");
..
..
..

Execution never gets to install/index.php since I have never seen the message 'Dies intentionally in install/index.php'.

What else should I do towards getting the installation going?

By the way, I have another website that is written in PHP and runs well under IIS and GoDaddy:
http://tng11.rad129.net/login.php
I derived it from http://www.tngsitebuilding.com/

r4

Thank you for your instructions, kvvaradha.

1.: I have not yet succeeded with installing, so I cannot do 1.

2.: Root of FA does not have config.php nor config_db.php, so I cannot do 2.

3.: Added the lines near the top of index.php. Details of exact file contents and results are in https://1drv.ms/b/s!AvoFL8QrGVaTk26cc1r04RfG_RZL (Steps 4, 5 and 6). Essentially, there was no change in web site behavior, i.e., PHP did not display any errors.

4.: Please see the echo statements shown in index.php in https://1drv.ms/b/s!AvoFL8QrGVaTk26cc1r04RfG_RZL . I hope that is what you suggested.

r4

poncho1234, thanks for your link to https://frontaccounting.com/punbb/viewtopic.php?id=2581, but I was unable to make use of the info there where the complaint was too much redirection whereas I am having trouble getting any redirection.

phpinfo is available here: http://pssafrontacc.rad129.net/phpinfo.php

r4

Talked with godaddy help. All they could tell me is that the problem was in the code. They do not provide coding help. I made sure directories are writable, and I made some code modifications in index.php and install/index.php as shown here:
https://1drv.ms/b/s!AvoFL8QrGVaTk26cc1r04RfG_RZL
No more error 500 at the moment, but "This site can't be reached". I don't know where to go from here. Please look at the document at above link and help me further.
Thanks!
r4