kingarthurpt / mod-random-article

A Joomla module that displays a random article.
1 stars 2 forks source link

Getting these errors showing in the Basic Options area of the module: #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the module and Joomla are you using?
Latest version of the module as far as I can tell: 1.3. Joomla 2.5.8 using a 
Yootheme

Please provide any additional information below like your module settings.

Original issue reported on code.google.com by anniemin...@gmail.com on 3 Dec 2012 at 3:14

GoogleCodeExporter commented 9 years ago
Well, that didn't work - let me try again:

These errors displaying in the Basic Options area of the module:
Notice: Undefined offset: 0 in 
/Applications/MAMP/htdocs/shamrock/modules/mod_random-article/models/fields/cate
goryk2.php on line 34

Notice: Trying to get property of non-object in 
/Applications/MAMP/htdocs/shamrock/modules/mod_random-article/models/fields/cate
goryk2.php on line 34

Notice: Undefined offset: 0 in 
/Applications/MAMP/htdocs/shamrock/modules/mod_random-article/models/fields/radi
ok2.php on line 34

Notice: Trying to get property of non-object in 
/Applications/MAMP/htdocs/shamrock/modules/mod_random-article/models/fields/radi
ok2.php on line 34

Notice: Undefined offset: 0 in 
/Applications/MAMP/htdocs/shamrock/modules/mod_random-article/models/fields/text
k2.php on line 34

Notice: Trying to get property of non-object in 
/Applications/MAMP/htdocs/shamrock/modules/mod_random-article/models/fields/text
k2.php on line 34

And this showing in the front end in the module space:

Notice: Undefined variable: k2rows in 
/Applications/MAMP/htdocs/shamrock/modules/mod_random-article/helper.php on 
line 99

I have used this module before without issue. The only difference is the Joomla 
version. The working one uses J2.5.7. Now I'm concerned about upgrading.

Nothing in the module settings makes any difference.

Hope you can help - am on a deadline.

Original comment by anniemin...@gmail.com on 3 Dec 2012 at 3:18

GoogleCodeExporter commented 9 years ago
Sorry, I should add that K2 is not installed on either site.

Original comment by anniemin...@gmail.com on 3 Dec 2012 at 3:19

GoogleCodeExporter commented 9 years ago
I turned error reporting off and now the error doesn't display. However, 
correct me if I'm wrong - that is hardly a fix, is it?

Original comment by anniemin...@gmail.com on 3 Dec 2012 at 4:14

GoogleCodeExporter commented 9 years ago
Yes, this problem exists. 
They are PHP notices and will disappear if you set Error reporting to "Simple" 
or "None". It says that my code should be prettier than it is now. I forgot to 
check this. I always set my Error reporting to "Simple" that's why I didn't see 
them.

However, they are not errors and the module should work normally. If you see 
that the module is not working properly due to these notices please comment 
below detailing what is happening.

I will remove these notices within the next days and the fix will be available 
in the SVN repository after closing this Issue, or in the upcoming version of 
the module.

Thank you for reporting this problem.

Original comment by artur.ze.alves on 3 Dec 2012 at 8:30

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r47.

Original comment by artur.ze.alves on 3 Dec 2012 at 9:14

GoogleCodeExporter commented 9 years ago
You can also get the fixed version here: 
http://mod-random-article.googlecode.com/files/mod_random-article_v1.3.0.48.zip

Original comment by artur.ze.alves on 6 Dec 2012 at 8:31