Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » RADICORE Installation Issues » Installation 2.0.7
Installation 2.0.7 [message #6990] Mon, 09 October 2017 20:02 Go to previous message
divico is currently offline  divico
Messages: 13
Registered: August 2008
Junior Member
Just did a reinstall of my environment and found a few minor issues.

1. Load of mnu_user_role radicore/menu/sql/mysql/mnu-user.sql
a) Data in the file references column is_primary. However the column has been dropped by alter_table(2017-07-20).sql. Data mnu-user.sql therefore does not load
==> I removed the values from the sql data file for the column assuming it should not be loaded
b) Data does not contain values for column sort_seq, which has been defined as not allowing null values. Data mnu-user.sql therefore does not load
==> I added the column to the sql data file and set the values according to the change in alter_table(2017-07-20).sql:
UPDATE `mnu_user_role` SET `sort_seq`=1 WHERE `is_primary`='Y';
UPDATE `mnu_user_role` SET `sort_seq`=9 WHERE `is_primary`='N';

Are my assumptions correct? Would it be possible to change mnu-user.sql accordingly?

2. I could not logon to the system, had the same problem as previously reported:

This application has encountered an unrecoverable error
The following has been reported to the administrator:
2017-10-09 17:49:04
Fatal Error: File /var/www/html/radicore/menu/text/en/sys.language_array.inc is empty (# 256)
Error in line 3395 of file '/var/www/html/radicore/includes/include.library.inc'.

I think the problem is in this code:

$file_language = basename(dirname($fname));
if (!array_key_exists($language, $system_msgs)) {
===> $system_msgs[$file_language] = require_once $fname; // import contents of disk file
===> if (empty($array)) {
//trigger_error(getLanguageText('sys0124', $fname), E_USER_ERROR);
trigger_error("File $fname is empty", E_USER_ERROR);
} // if

The contents of the file is loaded into $system_msgs[$file_language], however the variable $array is used for evaluation. $array has not been initialized (though is empty) in the code and therefore the condition evaluates to true, resulting in the error mentioned above.

As a temporary fix I commented the if statement.

This sequence of statements do occur multiple times in include.library.inc.

Cheers, Divico
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Subject: Fatal error: File C:\wamp\www\radicore\menu\text/en/sys.language_text.inc is empty in C:\ra
Next Topic: multibyte error
Goto Forum:

Current Time: Wed Jan 26 02:49:57 EST 2022

Total time taken to generate the page: 0.01264 seconds