{"id":1999,"date":"2022-08-30T15:21:12","date_gmt":"2022-08-30T15:21:12","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/12\/08\/problem-about-moodle-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:21:12","modified_gmt":"2022-08-30T15:21:12","slug":"problem-about-moodle-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-moodle-collection-of-common-programming-errors\/","title":{"rendered":"problem about moodle-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b7513dc7fb65986529417c59f044901e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRay<br \/>\nc# client xml-rpc moodle<br \/>\nI am using the CookComputing XML-RPC Library in an attempt to build a C# console client in order to execute API methods on Moodle (an open-source Learning management system). The server is using ZEND XML-RPC.When I run the code, I get a TypeLoadException was Unhandled, referring to this line: System.Object myResults = proxy.moodle_user_get_user_by_id(myUserIds);&#8221;Inheritance security rules violated while overriding member: &#8216;CookComputing.XmlRpc.XmlRpcFaultException.GetObjectData(System.Runtime.Se<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/MGhY2.png?s=32&amp;g=1\" \/><br \/>\nhakre<br \/>\nphp soap soap-client moodle<br \/>\nI am having difficulty getting started with interfacing my PHP script to Moodle 2.0 over the SOAP Web Service provided. Not knowing much about SOAP, I figured I would simply connect and go from there. However, I can&#8217;t even get connected&#8230;$soap=new SoapClient(&#8216;http:\/\/mymoodleserver\/webservice\/xmlrpc\/server.php?wstoken=asdfasdfasdfasdfasdf&#8217;,array(&#8216;trace&#8217;=&gt;1,&#8217;exceptions&#8217;=&gt;true,&#8217;cache_wsdl&#8217;=&gt;WSDL_CACHE_NONE) );This returns:Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Par<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/uJi4F.jpg?s=32&amp;g=1\" \/><br \/>\ndglickler<br \/>\ntinymce loading moodle filepicker<br \/>\nI&#8217;ve created a fresh install of Moodle 2.5.I installed successfully, I thought. I have not customized the theme, so it can NOT be theme-based.TinyMCE&#8217;s file picker is not loading&#8230;whether trying to upload a file or creating\/editing a course under the Course summary files section&#8230;all I get is the &#8220;Loader&#8221; star. I did some research and found no solutions that worked. Quite a few said &#8220;custom themes,&#8221; but I have no custom themes yet. Now, in checking the console, I got this:Uncaught SyntaxError:<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/cde2b90b8b540ec9cc31d0a4ff6f6534?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDozent<br \/>\nphp json moodle<br \/>\nI&#8217;m trying to get json data by calling moodle url:https:\/\/&lt;moodledomain&gt;\/login\/token.php?username=test1&amp;password=Test1&amp;service=moodle_mobile_appthe response format of moodle system is like this:{&#8220;token&#8221;:&#8221;a2063623aa3244a19101e28644ad3004&#8243;}The result I tried to process with PHP:if ( isset($_POST[&#8216;username&#8217;]) &amp;&amp; isset($_POST[&#8216;password&#8217;]) ){\/\/ test1 Test1\/\/ request for a &#8216;token&#8217; via moodle url$json_url = &#8220;https:\/\/&lt;moodledomain&gt;\/login\/token.php?usern<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/da5816365344305a614343a4065a2786?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBrad<br \/>\niis6 php5 fastcgi isapi moodle<br \/>\nI am working with Moodle 1.9 running on Windows Server 2003, IIS 6. I am trying to switch from PHP&#8217;s ISAPI extension to FastCGI, hoping for a speed improvement.I installed FastCGI for IIS 6 just fine, and configured it for PHP. It works, and in fact most of Moodle works great. The only thing that doesn&#8217;t, is the home page. When running as FastCGI, I get this error:PHP Notice: Undefined index: description in C:\\Inetpub\\wwwroot\\moodle\\lib\\magpie\\rss_parse.inc on line 402So I thought, &#8220;Hmmm,<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/MGhY2.png?s=32&amp;g=1\" \/><br \/>\nhakre<br \/>\nphp mamp moodle iconv<br \/>\nI have downloaded Moodle and extracted zip file. then i have placed this moodle in MAMP\/htdocs. Now i am browsing from localhost:8888\/moodle, i am geting these following error. &#8220;Broken iconv PHP extension detected, installation can not continue.&#8221;. How can i fix it?<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c7d87f0549f89bf74871e021a0da1d32?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmarkus<br \/>\nphp apache moodle<br \/>\nI have Moodle 2.3.3+ and after I press &#8220;continue&#8221; in &#8220;extension check page&#8221; in the installation the server will stop and when i try to access any domain on the server this message will come up:The connection was resetand after 3-5 minutes the server will response again and the installation will continue to the &#8220;admin registration&#8221; and when i press &#8220;submit&#8221; the server will crash again without saving the admin information.Server Specifications:Dedicated Server Intel\u00ae CoreT i7-920 Quadcore RAM 24<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/302ce706223fbec786844b120d06a233?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nChristos312<br \/>\nphp html moodle<br \/>\nI am trying to create a custom login page for Moodle. Everything works perfect but I need to also add the &#8220;Remember username&#8221; option.The problem with that is in the core files (see below) they use some variables to remember and echo the username. How can I do that in my login.php file? When I try to echo p($frm-&gt;username) I get an error that is Undefined. And the reason is obvious. My question is, is there a way to include their index.php file in my file and use the variables or functions they h<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0bfb6e64d2b7d48d75ea3c0048ab0b94?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nGregory-Turtle<br \/>\nphp mysql sql moodle<br \/>\nI am porting a Moodle 1.0 module to version 2.0. While checking for errors in several PHP files, I ran into an error message for a query, but there was no indication of what the error was. Here is the query:global $DB; \/\/required global variable$vms = $DB-&gt;get_records_sql(&#8216;SELECT DISTINCT vm.*, uva.assignment_id, gm.groupid,CASE WHEN gm.groupid IS NULL THEN uva.user_id ELSE NULL END user_idFROM {mdl_vMoodle_Virtual_Machine} vm INNER JOIN {mdl_vMoodle_UVA} uva ON vm.id = uva.vm_id LEFT JOIN {m<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f14b540a80aab6adb175fe43556906fd?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nZxaos<br \/>\nplugins block moodle<br \/>\nI have a moodle block plugin where I&#8217;m trying to include javascript in the page.No matter how I try, the javascript called by the js_init_call always throws an error instead of running I&#8217;ve tried passing a full array to js_init_call, and I&#8217;ve tried the shorthand form that assumes the file is called module.jsIf the javascript file doesn&#8217;t exist, I get a moodle error complaining about the missing file. If it does exist, I get a javascript error as above. What am I doing wrong?block_foo.php:&lt;?ph<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0dfa8b825ab119ee24483066683ee477?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nthibaultCha<br \/>\nmoodle<br \/>\nI&#8217;m doing an update for a Moodle plugin. Basically all I want to do is to add some fields to an existing table in database.Here&#8217;s my upgrade.php built from the XMLDB editor:function xmldb_qtype_myqtype_upgrade($oldversion = 0) { global $DB; $dbman = $DB-&gt;get_manager();$result = true;if ($oldversion &lt; 2013031601) {\/\/ Define table solib to be created$table = new xmldb_table(&#8216;solib&#8217;);\/\/ Adding fields to table solib$table-&gt;add_field(&#8216;id&#8217;, XMLDB_TYPE_INTEGER, &#8217;10&#8217;, null, XMLDB_NOTNULL, XMLDB<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f824f512c43c20eb81b28c47d1924b68?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSven<br \/>\nphp moodle zend-guard<br \/>\nI&#8217;m receiving this error on my hosting provider account. I know it is a php related error that doesn&#8217;t allow me to reach my moodle site. I have access to the php.ini but i haven&#8217;t been able to make php to work properly just with moodle 2.4.1. It works fine with a wordpress install.<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-12-08 05:40:50. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Ray c# client xml-rpc moodle I am using the CookComputing XML-RPC Library in an attempt to build a C# console client in order to execute API methods on Moodle (an open-source Learning management system). The server is using ZEND XML-RPC.When I run the code, I get a TypeLoadException was Unhandled, referring to this line: System.Object [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1999","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1999","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1999"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1999\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1999"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}