RadioDJ - Free Radio Automation Software Forum

The new WordPress plugin (0.7)

Re: The new WordPress plugin (0.7)
« Reply #15 on: December 18, 2016, 06:48:20 PM »
ok thx again for your help :P

Re: The new WordPress plugin (0.7)
« Reply #16 on: February 10, 2017, 04:26:04 PM »
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. :(

Offline DJ Garybaldy

  • *****
  • 3978
  • Never Get Angry At the Stupid People (Erasure)
    • DJ Garybaldy
Re: The new WordPress plugin (0.7)
« Reply #17 on: February 11, 2017, 09:49:47 AM »
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.

USER of RadioDJ since 2010

Useful RadioDJ information : https://djgarybaldy.co.uk/category/radiodj/

I cannot give help and support via Private message!

I'm not as scary as I look Honest!

My little pet project: https://t.co/YyVaPOBYBK

Re: The new WordPress plugin (0.7)
« Reply #18 on: February 12, 2017, 03:12:19 PM »
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.  :(

Offline Marius

  • *****
  • 5572
    • Radio DJ
Re: The new WordPress plugin (0.7)
« Reply #19 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.
DOWNLOADS PAGE

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

Re: The new WordPress plugin (0.7)
« Reply #20 on: February 12, 2017, 10:35:56 PM »
The plot thickens

Re: The new WordPress plugin (0.7)
« Reply #21 on: February 13, 2017, 11:03:47 AM »
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 :(

Re: The new WordPress plugin (0.7)
« Reply #22 on: February 13, 2017, 11:42:02 AM »
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 :)

Re: The new WordPress plugin (0.7)
« Reply #23 on: February 13, 2017, 01:59:11 PM »
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.

Offline Marius

  • *****
  • 5572
    • Radio DJ
Re: The new WordPress plugin (0.7)
« Reply #24 on: February 13, 2017, 03:47:18 PM »
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.

Offline neutralhills

  • ****
  • 344
  • Nil sine labore.
    • squirrel.fm
Re: The new WordPress plugin (0.7)
« Reply #25 on: February 20, 2017, 07:29:02 AM »
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.

Offline DJ Garybaldy

  • *****
  • 3978
  • Never Get Angry At the Stupid People (Erasure)
    • DJ Garybaldy
Re: The new WordPress plugin (0.7)
« Reply #26 on: February 20, 2017, 12:58:24 PM »
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.
USER of RadioDJ since 2010

Useful RadioDJ information : https://djgarybaldy.co.uk/category/radiodj/

I cannot give help and support via Private message!

I'm not as scary as I look Honest!

My little pet project: https://t.co/YyVaPOBYBK

Offline neutralhills

  • ****
  • 344
  • Nil sine labore.
    • squirrel.fm
Re: The new WordPress plugin (0.7)
« Reply #27 on: February 20, 2017, 03:50:52 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.

Offline DJ Garybaldy

  • *****
  • 3978
  • Never Get Angry At the Stupid People (Erasure)
    • DJ Garybaldy
Re: The new WordPress plugin (0.7)
« Reply #28 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.
USER of RadioDJ since 2010

Useful RadioDJ information : https://djgarybaldy.co.uk/category/radiodj/

I cannot give help and support via Private message!

I'm not as scary as I look Honest!

My little pet project: https://t.co/YyVaPOBYBK

Offline neutralhills

  • ****
  • 344
  • Nil sine labore.
    • squirrel.fm
Re: The new WordPress plugin (0.7)
« Reply #29 on: February 20, 2017, 05:09:10 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.