Forum


Warning: Invalid argument supplied for foreach()

Abel Alemu
8%
Posts: 8
TF Learn
May 15, 2021

The attached error is shown when pressing the view details on the specific course in the courses page. What should i do?

Warning: Invalid argument supplied for foreach() in C:\wamp64\www\easyJoomla\components\com_tflearn\views\course\tmpl\default.php on line 20

Joomla Fry
100%
Posts: 965
May 16, 2021

Thank you for informing about the error. This issue will be solved in the next update.

This PHP warning is coming because there are no modules in the course yet. After adding modules to the course, this warning will not come.

Abel Alemu
8%
Posts: 8
May 16, 2021

tnx

On something related,I am having trouble registering users and sending emails on the contact form of joomla. It says php mail not sent what can i do.

Joomla Fry
100%
Posts: 965
May 16, 2021

You can check mail settings. Go to System -> Global Configuration. Under "Server" tab, on the bottom right, click on "Send Test Mail".

If you have not received the test mail, then the problem is with the server and PHP settings.

What is the problem in registering users?

Abel Alemu
8%
Posts: 8
May 16, 2021

when testing mail it says "could not start mail function" the same thing happens when registering users. I am using php mailer to send email.

Joomla Fry
100%
Posts: 965
May 16, 2021

The problem is with mail() function of PHP. Either with server configuration or with PHP settings. You need to contact your server or hosting provider.

Login to Reply