Discussion Forums  >  Self Hosted Control Panels

Replies: 6    Views: 157

ehwright
Aspiring developer
Profile
Posts: 57
Reg: Feb 21, 2012
Perth
2,370
01/29/14 02:07 AM (11 years ago)

Unable to use custom plugin in self hosted server - file not found error

Hi, I have just updated my self hosted server and am re-installing my plugin created some time ago. I encountered lots of errors, so rewrote and then tried to upload and use. Once I got to the screen I created with the plugin I got the message 'file not found'. I see that when you click on a screen with most plugins you go to the bt_screen.php file, yet when I clicked on my screen it went to the plugin's directory and could not find a file to open. I thought this might have something to do with how the plugin was installed so I went back and re-created the plugin via buzz touch's plugin creation method, then installed the plugin on my server by grabbing it from my Buzztouch account. Went to create a screen using that plugin and got the same error - 'file not found'. Anyone got any ideas? (anything appreciated) Liz
 
LeonG
Apple Fan
Profile
Posts: 694
Reg: Nov 08, 2011
Hamburg
17,740
like
01/29/14 02:48 AM (11 years ago)
Many things changed with 3.0, plugin needs some changes as well, before it connects to the control panel. Check the how-to section, sure that will help.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/29/14 03:20 AM (11 years ago)
Yeah, there's a couple of things at play that might not be quite sorted out completely… All new plugin 'should' be BTv3 compliant. In this instance, it means no more PHP files. Now, an older plugin should still work "if" it has an index.php file… However, 'new' plugins won't have that; they rely on the BT infrastructure to implement the 'new' method of operation. However I noticed that a number of my plugins weren't being completely 'registered' until I edited the MySQL database for the 'new' plugins. There is a new field present in the BTv3 plugins table. The field is called 'landingPage', and the only applicable answer is either 'null' (nothing) or 'bt_screen.php'. If the field is empty, the plugin is 'assumed' to be a BTv2 plugin, and it will rely on the index.php file. If the field is populated with 'bt_screen.php' it is assumed to be a BTv3 plugin, and will use bt_screen.php to pull and display information for that plugin, in accordance with 'new' BT innards. What you may have to do is add the value 'bt_screen.php' to those plugins that 'are' BTv3 compliant, but whose fields did not get updated for some reason. I'm pretty sure that will fix you up; I ran into the same thing. Cheers! -- Smug Edit: And a bit of discussion on it here: http://www.buzztouch.com/forum/thread.php?tid=BDBB5438B416FE570812CB8&currentPage=1
 
ehwright
Aspiring developer
Profile
Posts: 57
Reg: Feb 21, 2012
Perth
2,370
like
01/29/14 06:47 PM (11 years ago)
Thanks for the heads up, I knew it had something to do with the 'landingPage' field being blank or not, which resulted into the call to the bt_screen.php file or not, but I got stuck on why my plugin had that field blank when others didn't. This started when I tried to upload my old plugin and got the error message about plugins not able to be uploaded if there were php files involved. This meant that it could not be loaded via the normal procedure and I assumed that it had to be re-written. Now I know that I can probably use the older version of my plugin so long as I load it into the file system via ftp, or, I can use the newer version of my plugin so long as I go in and update the entries on the database. Getting there… I think….
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/29/14 07:06 PM (11 years ago)
It's an odd situation, but that's the best 'known' cure until some changes are made in the core system… But basically "new" plugins need a landing page. Old plugins do not. The system screams when you try to upload an older plugin, so you're on the right track; manual FTP is the only good choice for an older plugin. And possibly a little database massage for one, the other, or both. Good Luck! Let us know if you get stuck. Cheers! -- Smug
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/29/14 10:47 PM (11 years ago)
I find that if I hit the refresh plugins button twice after uploading one it does the trick
 
ehwright
Aspiring developer
Profile
Posts: 57
Reg: Feb 21, 2012
Perth
2,370
like
01/29/14 11:06 PM (11 years ago)
Hi chris1, I had a go at hitting the refresh button a few times, lo and behold, there you go. Thanks for the tip!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.