Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Random Content Plugin Problem
#1
I'm still using the Random Content Plugin to create banners on my website.

http://www.philajazzproject.org

I made a change to the banners the other night and I've gotten this ugly message on my page...



Warning: array_keys() expects parameter 1 to be array, string given in /home/philadelphiajazz/public_html/plugins/RandomContent.php on line 53



Warning: shuffle() expects parameter 1 to be array, null given in /home/philadelphiajazz/public_html/plugins/RandomContent.php on line 55



Warning: Invalid argument supplied for foreach() in /home/philadelphiajazz/public_html/plugins/RandomContent.php on line 57


Can anyone help me?

Is there a better solution for random text and images for Get Simple?

Any help would be appreciated.


Many thanks in advance.

Homer
Reply
#2
http://get-simple.info/forums/showthread.php?tid=6973
Reply
#3
Thanks.
I will get to studying this.

Homer
Reply
#4
Also wise to disable pho error reporting on a production server.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#5
Shawn,

As a newbie, I can't locate where to tune off the pho errors in the gsconfig file.
Any help will be greatly appreciated.

Thanks.

Homer
Reply
#6
(2015-05-26, 13:10:29)homershines Wrote: Shawn,

As a newbie, I can't locate where to tune off the pho errors in the gsconfig file.
Any help will be greatly appreciated.

Thanks.

Homer

He means php errors (I think)
Reply
#7
(2015-05-23, 00:22:38)datiswous Wrote: http://get-simple.info/forums/showthread.php?tid=6973

Btw, that topic is only about random images. If you want text and images that plugin might still be the best (if you get around your problem). Just tested it, plugin random content works fine for me. Although in this case I used a component with the theme code in it so in combination with dynpages I can use it in a page instead of a template.
Reply
#8
PHP Code:
# Forces suppression of php errors when GSDEBUG is false, despite php ini settings
define('GSSUPPRESSERRORS',true); 

will attempt to suppress errors, although it should be disabled on your host ideally.
Not really a GS issue
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#9
Thanks Shawn.

Homer
Reply
#10
Just installed Random Content, once installed and activated, entire site was showing a server error.  Once deleted, site was back up...
Reply
#11
(2015-06-07, 01:41:26)elubben Wrote: Just installed Random Content, once installed and activated, entire site was showing a server error.  Once deleted, site was back up...

You might have to delete that other plugin Random ads, since this is based on that plugin. You might actually have to delete files in data/other (not sure, backup first).
Reply
#12
(2015-06-08, 06:18:52)datiswous Wrote:
(2015-06-07, 01:41:26)elubben Wrote: Just installed Random Content, once installed and activated, entire site was showing a server error.  Once deleted, site was back up...

You might have to delete that other plugin Random ads, since this is based on that plugin. You might actually have to delete files in data/other (not sure, backup first).

Did what I needed doing a different way using a php snippit from here.  Thanks for all the help!
Reply




Users browsing this thread: 1 Guest(s)