• Welcome to RadioDJ - Free Radio Automation Software Forum. Please log in or sign up.

The new WordPress plugin (0.7)

Started by Valdis, September 04, 2016, 09:24:13 PM

Nova


Philo694

I'm having the same error message as neutralhills with version 0.7 of the Wordpress Plugin.
"Empty output from ob_get_clean" "</> and "$output = " printed out on page.
I had been using 0.5 which worked for me but cannot get this new version to play nice.
Anyone got any ideas what I'm doing wrong?
Please help. :(

ghm72

Its a case of waiting for the developer of the WP plugin to show his face on the forums and deal with these issues with the code.

He hasn't been around here for a few months now.


Philo694

Ok thanks. I'll take a look at the code and see if there is anything I can fix in case the developer doesn't return. But I don't hold out much hope as my PHP coding skills are limited.  :(

Marius

This error must be related to the server settings, because i just installed a fresh wordpress and added the wordpress plugin and it works without any issue.
DOWNLOADS PAGE

HOW TO FIX RADIODJ DATABASE
----------------
Please don't PM me for support requests. Use the forums instead.

Philo694


Philo694

I have been into the php code and the plugin fails when it tries to load php code to build up the Online Requests Page. i.e. in radiodj.class.php line 543 : require_once(RDJ_PLUGIN_DIR . 'views/request-table.php'); the page fails to load. Not sure if it cannot be found on the server or not able to be read.
I have checked the path and it shows /home/hp3-linc4-nfs1-x/866/1042866/user/htdocs/wp-content/plugins/radiodj-for-wordpress-0.7.0/views/request-table.php. On my server I can only see from /htdocs/wp-content/plugins/radiodj-for-wordpress-0.7.0/views/request-table.php so not sure if the path is correct.
Not sure if anyone can help but help would be much appreciated :(

Philo694

OK. After a few hours I have a solution to this plugin issue. I went into radiodj.class.php and changed all the required_once() calls to required. i.e. require_once(RDJ_PLUGIN_DIR . 'views/nowplaying.php'); now reads require(RDJ_PLUGIN_DIR . 'views/nowplaying.php'); and I did this for every instance on the page. It seems that if require_once is used the page does not get loaded if it was previously loaded.
IF YOU DO THIS I ACCEPT NO LIABILITY FOR WHAT HAPPENS.
Phew. Love it when a plan comes together :)

Philo694

Now that I can see the request page I see the same songs appearing many times in the list of songs and pressing the submit request button many times (as users do) sends the same song many times into radiodj playlist
I think I'll leave it for now.

Marius

Quote from: http://www.geekinterview.com/question_details/22645
require() includes and evaluates a specific file, while require_once() does that only if it has not been included before (on the same page).

So, require_once() is recommended to use when you want to include a file where you have a lot of functions for example. This way you make sure you don't include the file more times and you will not get the "function re-declared" error.
DOWNLOADS PAGE

HOW TO FIX RADIODJ DATABASE
----------------
Please don't PM me for support requests. Use the forums instead.

neutralhills

Quote from: Marius on February 12, 2017, 08:09:41 PM
This error must be related to the server settings, because i just installed a fresh wordpress and added the wordpress plugin and it works without any issue.

I'm currently hosting over 30 sites on my hosting package with at least 200 different Wordpress plugins in play. This is the ONLY one I can't get to work. I suspect I'd be having more problems across my more sites if my PHP settings were screwy.

This is frustrating. :(
Squirrel FM : Always playing with our nuts!
www.squirrel.fm
Studio systems running RadioDJ & Rivendell (occasional only)
Flow 8 Deck & PlayIt Cartwall for live mixing and assist.
Remote systems running RadioDJ
Pioneer DDJ-SX control surface.

ghm72

Quote from: neutralhills on February 20, 2017, 07:29:02 AM
I'm currently hosting over 30 sites on my hosting package with at least 200 different Wordpress plugins in play. This is the ONLY one I can't get to work. I suspect I'd be having more problems across my more sites if my PHP settings were screwy.

This is frustrating. :(

I could be wrong but maybe a plugin somewhere among the 200 other plugins is interfering with the running of the RadioDJ WP plugin.

I've known a plugin to break lots of things on a WP website its happened to us many a time.

You might have think about installing the request side of things on a fresh WP install on its own.

neutralhills

Quote from: DJ Garybaldy on February 20, 2017, 12:58:24 PM
I could be wrong but maybe a plugin somewhere among the 200 other plugins is interfering with the running of the RadioDJ WP plugin.

I've known a plugin to break lots of things on a WP website its happened to us many a time.

You might have think about installing the request side of things on a fresh WP install on its own.

Already tried that. Set up a test site where the RadioDJ plugin was the only one running in a fresh install of Wordpress. Same error. I can't afford to separate my station's site out from the rest and move it to a different hosting provider, nor do I want to. I've been getting absolutely stellar service from Servage.net for over a decade and I'm very loyal to them.
Squirrel FM : Always playing with our nuts!
www.squirrel.fm
Studio systems running RadioDJ & Rivendell (occasional only)
Flow 8 Deck & PlayIt Cartwall for live mixing and assist.
Remote systems running RadioDJ
Pioneer DDJ-SX control surface.

ghm72

It was just a thought. I guess you've covered all bases already.

Not a lot more I can suggest your only hope is Valdis coming back online to help out with these issues.

I think he has a cheek asking for donations when he appears not to be supporting any of his plugins.

neutralhills

Quote from: DJ Garybaldy on February 20, 2017, 04:02:18 PM
It was just a thought. I guess you've covered all bases already.

Not a lot more I can suggest your only hope is Valdis coming back online to help out with these issues.

I think he has a cheek asking for donations when he appears not to be supporting any of his plugins.

Well, I'm not criticizing anyone -- I certainly understand how life can get away from a person. I'd certainly be willing to throw some $$$ into his tip jar for a working plugin, that is for certain because this plugin is important to me. :)
Squirrel FM : Always playing with our nuts!
www.squirrel.fm
Studio systems running RadioDJ & Rivendell (occasional only)
Flow 8 Deck & PlayIt Cartwall for live mixing and assist.
Remote systems running RadioDJ
Pioneer DDJ-SX control surface.