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

Error Making Instance of CP-Involved Class

Development and Programming

barum internetservice's avatar
barum internetservice
2 posts
17 years ago
barum internetservice's avatar barum internetservice

Hi all, i have made an relative komplex EE-Module. Through i have many forms, which are used in the CP and FE of Expression Engine i dealed with the cp-specific in my mcp.modulename.php and in this file i created instances of classes which deal with the pure output. the idea by doing so was, to use this classes in FE too. (one of the main point of OOP reusable code) Now i’ve tried to make an instance of one class i used in the mcp but when doing so the whole EE-Frontend stops to work i get an networkerror. So is there some kind of security-mechanism, which looks for instances of classes used in the EE-CP and stops the whole FE?

How to workaround?

Thx in advice, greetings from germany Andy

PS: sorry for my english

       
Justin Hurlburt's avatar
Justin Hurlburt
344 posts
17 years ago
Justin Hurlburt's avatar Justin Hurlburt

Greetings, and welcome to the forums!

May I ask for the error that you see when trying to initiate the class?

       
Brian M.'s avatar
Brian M.
529 posts
17 years ago
Brian M.'s avatar Brian M.

It actually sounds like you might have an error in the PHP itself? Like Justin said the error would be helpful 😊

       
barum internetservice's avatar
barum internetservice
2 posts
17 years ago
barum internetservice's avatar barum internetservice

Cause i didn’t see any error in Browser i thought it was an security issue from EE. Now i saw something in the apache-error-log [Wed Jul 09 09:19:13 2008] [notice] Parent: child process exited with status 3221225477 – Restarting. [Wed Jul 09 09:19:22 2008] [notice] Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5 configured – resuming normal operations [Wed Jul 09 09:19:22 2008] [notice] Server built: Jan 18 2008 00:37:19 [Wed Jul 09 09:19:22 2008] [notice] Parent: Created child process 4984

I’m using XAMPP for local development on my Windows XP.

Any ideas?

       
Brian M.'s avatar
Brian M.
529 posts
17 years ago
Brian M.'s avatar Brian M.

So the error is NOT in the control panel, correct (it’s in the front end of the website)?

Do you have error messages turned on in the control panel (security and debugging prefs)?

       
barum internetservice's avatar
barum internetservice
2 posts
17 years ago
barum internetservice's avatar barum internetservice

Okay, thx for thinking about it. I seems to me, that i can solve it. I used 2 Classes with the same name, but different spelling.

This caused an loop cause in one class im calling parent::methodname(); So cause i use extended classes, and php doesn’t seem to case sensitive classnames i overlooked this thing.

this thread can be marked as solved 😉

thx for your help, Andy

       

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.