We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Wrote a plugin; Now page comes up blank

Development and Programming

Our Collective's avatar
Our Collective
29 posts
15 years ago
Our Collective's avatar Our Collective

Hello,

I wrote a plugin and now my page comes up completely blank. I turned on template debugging and still nothing shows up.

How do i find out what’s wrong?

Thanks

       
Ingmar's avatar
Ingmar
29,245 posts
15 years ago
Ingmar's avatar Ingmar

What version and build are you using? Does you site work as expected without the plugin?

       
Our Collective's avatar
Our Collective
29 posts
15 years ago
Our Collective's avatar Our Collective

1.6.8

Yes

       
Ingmar's avatar
Ingmar
29,245 posts
15 years ago
Ingmar's avatar Ingmar

OK, let me move this to “Development and Programming”. Thanks.

       
Our Collective's avatar
Our Collective
29 posts
15 years ago
Our Collective's avatar Our Collective

Ok, But template debugging isn’t showing anything. Shouldn’t it be showing me errors at least?

edit: Also, i removed the entire class from the file and the output ‘no direct script access’ came up.

       
Carl W Crawley's avatar
Carl W Crawley
136 posts
15 years ago
Carl W Crawley's avatar Carl W Crawley

If you’re not getting any output at all, then it’s likely a fundamental coding error invthe plugin. If you want to use something like pastie.org to copy paste the code, I’ll take a look.

Writing a plugin is probably one of the easiest things to do in terms of add-on development for EE - however there is a strict coding procedure that you need to follow and you’d be surprised at how many hours I’ve wasted over non functioning code to find it something simple like a missing semicolon or similar!

Regards

C

       
Our Collective's avatar
Our Collective
29 posts
15 years ago
Our Collective's avatar Our Collective

Thanks for the offer, Carl, but i just found the error. A period.

I don’t understand why ee can’t display these syntax errors, though. It’s a serious efficiency hit to code without errors being displayed.

       
Carl W Crawley's avatar
Carl W Crawley
136 posts
15 years ago
Carl W Crawley's avatar Carl W Crawley

The thing is - that type of error is a php failing not EE. Since the app is built on PHP, if a catastrophic error occurs there’s no way for it to tell you since the whole stack fails to process.

The answer in this case would have been to review your php.log file which will identify the fault for you.

C

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.