Course create fails on fresh install of 2.4.5

Install and configure FormaLMS and DoceboCE
lwescott
Newbie
Posts: 12
Joined: Mon Mar 07, 2022 8:14 pm

Course create fails on fresh install of 2.4.5

Post by lwescott »

Hi,

I have a fresh install of FormaLMS.
I tried to create a course (just code, course name, course type and status) but the process fails with the message 'Error while processing the requested operation'.

How would I diagnose this? Are there logs I can review? I am assuming that the system is just unable to create database records maybe? I didn't find anything in the system syslog or Apache's log.

Any help would be much appreciated.

Thanks,

Larry
alfa24
Senior Boarder
Posts: 2008
Joined: Fri Nov 24, 2017 8:45 am

Re: Course create fails on fresh install of 2.4.5

Post by alfa24 »

Set do_debug true in config.php
You will fire a fatal error.
Post it here
Per supporto GRATUITO contattatemi in privato qui
lwescott
Newbie
Posts: 12
Joined: Mon Mar 07, 2022 8:14 pm

Re: Course create fails on fresh install of 2.4.5

Post by lwescott »

Hi,

The large number of errors make me think I missed something fundamental.

The landing page displayed a large number of errors, all of this flavor:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; PlatformManager has a deprecated constructor in /var/www/formalms/lib/lib.platform.php on line 21
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; UserManager has a deprecated constructor in /var/www/formalms/lib/lib.usermanager.php on line 26
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; UserManagerAction has a deprecated constructor in /var/www/formalms/lib/lib.usermanager.php on line 895
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; UserManagerOption has a deprecated constructor in /var/www/formalms/lib/lib.usermanager.php on line 2889
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; UserManagerRenderer has a deprecated constructor in /var/www/formalms/lib/lib.usermanager.php on line 916
Deprecated: Non-static method PlatformManager::createInstance() should not be called statically in /var/www/formalms/lib/lib.platform.php on line 342
Deprecated: Non-static method PlatformManager::createInstance() should not be called statically in /var/www/formalms/lib/lib.utils.php on line 546
Notice: Undefined index: notuse_customscript in /var/www/formalms/lib/lib.forma.php on line 49
Notice: Undefined index: notuse_plugin in /var/www/formalms/lib/lib.forma.php on line 31
Notice: Undefined index: notuse_template in /var/www/formalms/lib/lib.template.php on line 35
Warning: Creating default object from empty value in /var/www/formalms/lib/lib.platform.php on line 50
Warning: Illegal string offset 'browser' in /var/www/formalms/lib/layout/lib.layout.php on line 320
Warning: in_array() expects parameter 2 to be array, null given in /var/www/formalms/lib/lib.jquerylib.php on line 119
Warning: in_array() expects parameter 2 to be array, null given in /var/www/formalms/lib/lib.jquerylib.php on line 96
Warning: strpos(): Empty needle in /var/www/formalms/lib/lib.jquerylib.php on line 164



I logged in, and the next page gave me these:

Deprecated: Non-static method CourseLevel::getLevels() should not be called statically in /var/www/formalms/appLms/modules/course/course.php on line 647
Deprecated: Non-static method Learning_Cart::cartItemCount() should not be called statically in /var/www/formalms/appLms/lib/LMSTemplateModel.php on line 62
Deprecated: Non-static method Learning_Cart::cartItemCount() should not be called statically in /var/www/formalms/lib/layout/lib.layout.php on line 172
Deprecated: Non-static method Learning_Cart::cartItemCount() should not be called statically in /var/www/formalms/lib/layout/lib.layout.php on line 174
Deprecated: Non-static method Learning_Cart::emptyCart() should not be called statically in /var/www/formalms/appLms/lib/lib.cart.php on line 46
Deprecated: Non-static method Learning_Cart::init() should not be called statically in /var/www/formalms/appLms/lib/LMSTemplateModel.php on line 61
Deprecated: Non-static method Learning_Cart::init() should not be called statically in /var/www/formalms/lib/layout/lib.layout.php on line 170
Deprecated: Non-static method Man_CourseUser::getUserWithLevelFilter() should not be called statically in /var/www/formalms/lib/lib.user_profile.php on line 3781
Deprecated: Non-static method PlatformManager::createInstance() should not be called statically in /var/www/formalms/lib/lib.platform.php on line 342
Deprecated: Non-static method PlatformManager::createInstance() should not be called statically in /var/www/formalms/lib/lib.utils.php on line 546
Deprecated: Non-static method UrlManager::getInstance() should not be called statically in /var/www/formalms/lib/lib.user_profile.php on line 164
Notice: Only variables should be assigned by reference in /var/www/formalms/appLms/lib/lib.levels.php on line 27
Notice: Only variables should be assigned by reference in /var/www/formalms/appLms/modules/course/course.php on line 442
Notice: Only variables should be assigned by reference in /var/www/formalms/appLms/modules/course/course.php on line 443
Notice: Only variables should be assigned by reference in /var/www/formalms/lib/lib.user_profile.php on line 174
Notice: Undefined index: HTTP_X_FORWARDED_FOR in /var/www/formalms/lib/lib.user.php on line 109
Notice: Undefined index: notuse_customscript in /var/www/formalms/lib/lib.forma.php on line 49
Notice: Undefined index: notuse_plugin in /var/www/formalms/lib/lib.forma.php on line 31
Notice: Undefined index: order in /var/www/formalms/appLms/models/MycertificateLms.php on line 79
Notice: Undefined variable: _label_list in /var/www/formalms/widget/coursefilter/views/coursefilter.php on line 33
Notice: Undefined variable: browser_locale in /var/www/formalms/lib/lib.preference.php on line 597
Notice: Undefined variable: metaAssignable in /var/www/formalms/appLms/lib/lib.certificate.php on line 420
Notice: Undefined variable: metaAssigned in /var/www/formalms/appLms/lib/lib.certificate.php on line 371
Notice: Undefined variable: pendent in /var/www/formalms/lib/lib.user_profile.php on line 2234
Notice: Use of undefined constant _CUS_RESERVED - assumed '_CUS_RESERVED' in /var/www/formalms/appLms/modules/course/course.php on line 393
Notice: Use of undefined constant Docebo - assumed 'Docebo' in /var/www/formalms/appCore/Template/TwigManager.php on line 43
Warning: array_merge(): Argument #1 is not an array in /var/www/formalms/appLms/lib/lib.certificate.php on line 333
Warning: Creating default object from empty value in /var/www/formalms/lib/lib.platform.php on line 50
Warning: Illegal string offset 'browser' in /var/www/formalms/lib/layout/lib.layout.php on line 320
Warning: in_array() expects parameter 2 to be array, null given in /var/www/formalms/lib/lib.jquerylib.php on line 119
Warning: in_array() expects parameter 2 to be array, null given in /var/www/formalms/lib/lib.jquerylib.php on line 96
Warning: include(): Failed opening '/var/www/formalms/lib/plugins/UserProfile/loader.php' for inclusion (include_path='/var/www/formalms/vendor/phing/phing/classes:/var/www/formalms/vendor/phpunit/php-file-iterator:/var/www/formalms/vendor/phpunit/phpunit:/var/www/formalms/vendor/symfony/yaml:/var/www/formalms/vendor/phpunit/phpunit-mock-objects:.:/usr/share/php') in /var/www/formalms/lib/lib.pluginmanager.php on line 30
Warning: include(/var/www/formalms/lib/plugins/UserProfile/loader.php): failed to open stream: No such file or directory in /var/www/formalms/lib/lib.pluginmanager.php on line 30
Warning: strpos(): Empty needle in /var/www/formalms/lib/lib.jquerylib.php on line 164

Thanks,

Larry
alfa24
Senior Boarder
Posts: 2008
Joined: Fri Nov 24, 2017 8:45 am

Re: Course create fails on fresh install of 2.4.5

Post by alfa24 »

There's no fatal.
I need those logs with the user who would receive the blank page.
Per supporto GRATUITO contattatemi in privato qui
lwescott
Newbie
Posts: 12
Joined: Mon Mar 07, 2022 8:14 pm

Re: Course create fails on fresh install of 2.4.5

Post by lwescott »

Hi,
Which log do you need to see? If it is MySQL logs, I have not been able to get them into the syslog as yet.
I'm eager to provide, I just need specifics about how to get what you need.
I am the only user at this point, just trying to bring it to a running, functional state so we can evaluate it.
Thanks,
Larry
alfa24
Senior Boarder
Posts: 2008
Joined: Fri Nov 24, 2017 8:45 am

Re: Course create fails on fresh install of 2.4.5

Post by alfa24 »

I need apache/php logs when you got blank page.
If you aren't able to catch 'em, please consider to ask for help with debugging.
Per supporto GRATUITO contattatemi in privato qui
lwescott
Newbie
Posts: 12
Joined: Mon Mar 07, 2022 8:14 pm

Re: Course create fails on fresh install of 2.4.5

Post by lwescott »

Hi,
I am working on getting the logging working. I used the F12 console explorer in the browser to see some of what was happening, and I see a lot of 'missing file' messages... It's not a question of users seeing a blank page, it's that I can't even add content, this site is only partially functional.

Failed to load resource: the server responded with a status of 404 (Not Found)

DevTools failed to load source map: Could not load content for http://192.168.0.141/addons/jquery/sele ... ect.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

DevTools failed to load source map: Could not load content for http://192.168.0.141/addons/jquery/boot ... in.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

DevTools failed to load source map: Could not load content for http://192.168.0.141/addons/jquery/boot ... in.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

I looked on the server, and these files are not there. Could this be the source of my problem?

I am attaching two screen shots of what I see on the screen.

Thanks,

Larry
Attachments
new course pressed.png
Error while processing.png
alfa24
Senior Boarder
Posts: 2008
Joined: Fri Nov 24, 2017 8:45 am

Re: Course create fails on fresh install of 2.4.5

Post by alfa24 »

I need server logs, those are client logs.
Per supporto GRATUITO contattatemi in privato qui
lwescott
Newbie
Posts: 12
Joined: Mon Mar 07, 2022 8:14 pm

Re: Course create fails on fresh install of 2.4.5

Post by lwescott »

Hi,

I have verified that apache2 is writing to syslog. I used two simple php files with the error_log() function and confirmed the messages are showing up in /var/log/syslog. The first file just exercises the error_log() function. I got this in the syslog, tagged with apache2:

Mar 15 18:45:33 fp-web01 apache2: test error

I broke the second file to generate a parsing error, and confirmed PHP is logging through apache2:

Mar 15 18:45:37 fp-web01 apache2: PHP Parse error: syntax error, unexpected '}', expecting end of file in /var/www/formalms/error-check2.php on line 4

I ran this script to test database connectivity:
<?php
$mysqli_connection = new MySQLi('localhost', 'formalms', 'formalms', 'formalms');
if ($mysqli_connection->connect_error) {
echo "Not connected, error: " . $mysqli_connection->connect_error;
error_log("Not Connected");
}
else {
echo "Connected.";
error_log("Connected");
}

and got this in the syslog:
Mar 15 18:55:02 fp-web01 apache2: Connected

When I run the Forma site, no errors show up in the syslog. Everything appears to be functioning, it just won't save any data. I'm at a loss...

Any ideas? I would send you logs, but they don't contain anything useful yet. My next step will be to try an insert operation and see what happens.

Thanks,

Larry
lwescott
Newbie
Posts: 12
Joined: Mon Mar 07, 2022 8:14 pm

Re: Course create fails on fresh install of 2.4.5

Post by lwescott »

Hi,

I also created a test database, verified I could get my formalms account to access it and read records from it.
After that, I verified I could write new records into it, both times using php files under the formalms folder using the formalms credentials.

I'm getting nowhere fast. Should I just start over? I'm afraid I'll get back to the exact same place and still be stuck...

Larry
Post Reply