[fw-general] ZF project has stopped working!

2008-06-10 Thread SiCo007

This is just a quick query, I have just installed my project on my second
computer, both running WAMP with Apache 2.2.6 and PHP 5.2.6 but my ZF
project now won't run on my second PC but continues to run fine eleswhere.
As far as I can tell the apache and PHP config files are the same.

I realise it must be something easy I've missed but I don't know where to
continue looking!

The error is here inside an action helper:
// Retrieve the module name from the request object
$module = $this-getRequest()-getModuleName();

Fatal error: Call to a member function getModuleName() on a non-object in
C:\www\...

Would something cause this call to getRequest to fail?

I just can't understand and I know I'll be kicking myself soon!

Thanks
Simon

-
Simon

http://www.ajb007.co.uk/
-- 
View this message in context: 
http://www.nabble.com/ZF-project-has-stopped-working%21-tp17763406p17763406.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] ZF project has stopped working!

2008-06-10 Thread Pieter Kokx

Hi,

I think that the ZF version on your second PC is newer or older than the 
version on your other PC. You should probably look to this section of 
the manual for migration problems:


http://framework.zend.com/manual/en/zend.controller.migration.html


---
Met vriendelijke groet,

Pieter Kokx
MaakSite.net
PHP Developer



SiCo007 schreef:

This is just a quick query, I have just installed my project on my second
computer, both running WAMP with Apache 2.2.6 and PHP 5.2.6 but my ZF
project now won't run on my second PC but continues to run fine eleswhere.
As far as I can tell the apache and PHP config files are the same.

I realise it must be something easy I've missed but I don't know where to
continue looking!

The error is here inside an action helper:
// Retrieve the module name from the request object
$module = $this-getRequest()-getModuleName();

Fatal error: Call to a member function getModuleName() on a non-object in
C:\www\...

Would something cause this call to getRequest to fail?

I just can't understand and I know I'll be kicking myself soon!

Thanks
Simon

-
Simon

http://www.ajb007.co.uk/
  




Re: [fw-general] ZF project has stopped working!

2008-06-10 Thread SiCo007


Pieter Kokx wrote:
 
 I think that the ZF version on your second PC is newer or older than the 
 version on your other PC.

Sadly it's not the answer they are both identical, 1.5.2, the project is all
in it's own svn repository so technically both bases should be identical.

I'm sure it's a setup problem, I just don't understand why that particular
method is causing me problems, take out the plugin that calls that model
helper and it all works fine.

Which leads me to something stopping the getModuleName method being set.

Just to be clear I'm statically calling the action helper (loads models) in
a plugin before the site is loaded.

$role =
Zend_Controller_Action_HelperBroker::getStaticHelper('Model')-getModel('role');

... getModel then uses the call to getRequest() as per my last post. It
still doesn' make any sense to me!

Simon

-
Simon

http://www.ajb007.co.uk/
-- 
View this message in context: 
http://www.nabble.com/ZF-project-has-stopped-working%21-tp17763406p17764824.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] ZF project has stopped working!

2008-06-10 Thread SiCo007

Ignore me! It's a problem that's been lurking for a while I just hadn't
noticed. It is to do with 1.5.2, the files on the old setup were cached and
the new one I didn't copy the cache... Therefore the plugin / helper that
creates the cache files is broken in 1.5.2 so thankfully I've found the
answer and yes I am kicking myself!! :D

Simon

-
Simon

http://www.ajb007.co.uk/
-- 
View this message in context: 
http://www.nabble.com/ZF-project-has-stopped-working%21-tp17763406p17765512.html
Sent from the Zend Framework mailing list archive at Nabble.com.