I have a realy strange problem. I have a nice xte theme for my sajt that Ive been running for a while and it works just fine for a bunch of modules that I use. Now I wrote my own module that seems to work just fine when I run it under ExtraLite them but when I switch to my own theme it failes with the _XA_FAILEDTOINITENGINE errormessage in the theme.php!?
// initialise the engine
$engine = pnModAPIFunc('Xanthia','user','init');
// check we have an engine object otherwise we can't procede
if (!is_object($engine)) {
echo _XA_FAILEDTOINITENGINE . $thename;
exit;
}
Why does it happen when I activate my module!?
// Samuel
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
xanthia_userapi_init failes for my new module!?
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 11
after 6hours of debugging.. Seems like it breaks all Xanthia themes, even the default one.
It seems like it breaks on the
!pnModAPILoad('Xanthia', 'user')
function in theme.php and gives an error about line 134 in theme.php wich contains
$engine->do_themeheader($index);
It looks like the $engine is by some strange reason not initialized correctly and does not coctain anything!? I cant realy figure out what my module could do that could actualy break this!? the module simply creates some tables of its own and dont mess with anything else.
I use both pnHTML and pnRender in the module.. could that cause problems on Xanthia?
/ Samuel -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 11
Some more info... the only module that works is the
/index.php?module=Modules&type=admin
and even if I remove my "bad" module the theme seems to be chrashed!? What happens in the database when I activate a module!? anyone know? There must be something I do wrong that corrupts it all? -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 11
SOLVED: The xanthia module got "disabled" by some reason when I activated my module. So I just activaded it again and it seems to work!? This is among the wieredest things Ive ever seen!? Does anyone know why it gets disabled? -
- Rank: Developer
- Registered: Feb 23, 2005
- Last visit: May 09, 2010
- Posts: 399
When you say "disabled" do you mean de-activated and removed. A couple of times recently I found Xanthia needed "upgrading" in the modules list. I still don't know why because I changed nothing except install a new module. Anyway I just ungraded and everything was OK. Strange.
- Moderated by:
- Support
