General developer forum

coding error

 
Picture of Thuthi nesa raja
coding error
 

i am facing this error "Coding error detected, it must be fixed by a programmer: User id is required when printing user avatar image." can some one help me fix this

 
Average of ratings: -
Picture of Mike Churchward
Re: coding error
Core developersParticularly helpful MoodlersPlugin developersPlugins guardiansTesters

You're going to need to post more information. I'm guessing this is from a third party plugin?

Can you turn on developer debugging and get a stack trace?

 
Average of ratings: -
Picture of Michael Aherne
Re: coding error
Core developersPlugin developers

Are you using a really old version of Moodle? This was a known issue in 2.3: https://tracker.moodle.org/browse/MDL-37628

 
Average of ratings: -
Picture of Thuthi nesa raja
Re: coding error
 
Hi



currently we are using Moodle3.1

till my last logout it was working fine. today morning when i tried to open

i got the error "Coding error detected, it must be fixed by a programmer:

User id is required when printing user avatar image."

yesterday i tried to install blackboard collaboration. this was the last

plugin installed. after installation i configured.

when i tried to run debug i got the below listed error



*Warning*:

include(/var/www/html/moodle/theme/theme_bootstrap_moodle31_2016080100/version.php):

failed to open stream: No such file or directory in

*/var/www/html/moodle/lib/classes/plugin_manager.php* on line *318*



*Warning*: include(): Failed opening

'/var/www/html/moodle/theme/theme_bootstrap_moodle31_2016080100/version.php'

for inclusion

(include_path='/var/www/html/moodle/lib/pear:.:/usr/share/php') in

*/var/www/html/moodle/lib/classes/plugin_manager.php* on line *318*

Plugin theme_theme_bootstrap_moodle31_2016080100 does not declare valid

$plugin->component in its version.php.





  - line 328 of /lib/classes/plugin_manager.php: call to debugging()

  - line 348 of /lib/classes/plugin_manager.php: call to

  core_plugin_manager->load_present_plugins()

  - line 217 of /lib/classes/plugininfo/base.php: call to

  core_plugin_manager->get_present_plugins()

  - line 143 of /lib/classes/plugininfo/base.php: call to

  core\plugininfo\base->load_disk_version()

  - line 97 of /lib/classes/plugininfo/base.php: call to

  core\plugininfo\base::make_plugin_instance()

  - line 408 of /lib/classes/plugin_manager.php: call to

  core\plugininfo\base::get_plugins()

  - line 43 of /admin/settings/plugins.php: call to

  core_plugin_manager->get_plugins_of_type()

  - line 7279 of /lib/adminlib.php: call to require()

  - line 19 of /admin/settings.php: call to admin_get_root()



i have uninstalled the last few plugins installed



On Tue, Nov 20, 2018 at 8:40 PM Michael Aherne (via Moodle.org) <
 
Average of ratings: -
Picture of Mike Churchward
Re: coding error
Core developersParticularly helpful MoodlersPlugin developersPlugins guardiansTesters

From that, you appear to have a custom theme installed in your theme directory with the name: "theme_bootstrap_moodle31_2016080100". The plugin manager is looking for the required "version.php" file and is not finding it. I don't know if this is the "coding error" issue, but its a place to start.

 
Average of ratings: -