Page 1 of 1

[solved] 404 error page with custom template don't work

Posted: Fri Mar 06, 2009 1:47 pm
by Samuele
When I active the error message 404 with a my custom template I get this error:

Fatal error: Call to a member function GetURL() on a non-object in D:\Webdev\xampp\htdocs\dm2\tmp\templates_c\%%19^194^194941AA%%tpl_head%3A22.php on line 13


What does it mean?

Re: 404 error page with custom template don't work

Posted: Fri Mar 06, 2009 1:51 pm
by calguy1000
Please follow forum rules when posting.

You've been warned.

Re: 404 error page with custom template don't work

Posted: Fri Mar 06, 2009 2:37 pm
by Samuele
calguy1000 wrote: Please follow forum rules when posting.

You've been warned.
Why? What I did wrong?

Re: 404 error page with custom template don't work

Posted: Sat Mar 07, 2009 12:36 pm
by Samuele
Techaven wrote: What's he done wrong posting that?

Try deleting the contents of templates_c Samuele.

Even deleting all files in the folder tmp/templates_c does not work.

Re: 404 error page with custom template don't work

Posted: Sat Mar 07, 2009 1:26 pm
by alby
Techaven wrote: What's he done wrong posting that?
The forum rules are in README FIRST!!! forum.
It's very difficult support users when the info are lacking.
- What is the version of CMSMS
- What is your OS
- What is the version of PHP
- .....

A good start is the posting of System Information of admin part .....

In this case also is important:
When I active the error message 404 ...  How? In Global Settings, .htaccess, httpd.conf, .....

Alby

Re: 404 error page with custom template don't work

Posted: Sat Mar 07, 2009 2:14 pm
by Samuele
alby wrote: When I active the error message 404 ...  How? In Global Settings, .htaccess, httpd.conf, .....
In Global Settins, I'm using cmsms 1.5.3 on xampp 1.7 under winxp sp3

Re: 404 error page with custom template don't work

Posted: Sat Mar 07, 2009 2:48 pm
by alby
Samuele wrote:
alby wrote: When I active the error message 404 ...  How? In Global Settings, .htaccess, httpd.conf, .....
In Global Settins, I'm using cmsms 1.5.3 on xampp 1.7 under winxp sp3
Active debug in config.php and look for pertinent info, same after for your server logs

Alby

Re: 404 error page with custom template don't work

Posted: Mon Mar 09, 2009 4:22 pm
by alby
alby wrote:
Samuele wrote:
alby wrote: When I active the error message 404 ...  How? In Global Settings, .htaccess, httpd.conf, .....
In Global Settins, I'm using cmsms 1.5.3 on xampp 1.7 under winxp sp3
Active debug in config.php and look for pertinent info, same after for your server logs
I have tried under the same conditions XP+ xampp 1.7 + CMSMS 1.5.3 but I can not reproduce the problem
Search with debug active and in server logs

Alby

Re: 404 error page with custom template don't work

Posted: Tue Mar 10, 2009 7:54 am
by Samuele
With a new installation of cmsms with data example, debug=true in config.php, this are the errors when, for example, I click this url

Code: Select all

http://localhost:85/cmsmadesimple/1/

Code: Select all

Notice: Undefined index: content_obj in D:\Webdev\xampp\htdocs\cmsmadesimple\tmp\templates_c\%%42^420^420EE6E6%%tpl_head%3A17.php on line 7

Fatal error: Call to a member function GetURL() on a non-object in D:\Webdev\xampp\htdocs\cmsmadesimple\tmp\templates_c\%%42^420^420EE6E6%%tpl_head%3A17.php on line 7

In apache access.log file:

Code: Select all

127.0.0.1 - - [10/Mar/2009:08:52:45 +0100] "GET /cmsmadesimple/1/ HTTP/1.1" 404 414

Re: 404 error page with custom template don't work

Posted: Tue Mar 10, 2009 8:44 am
by alby
Samuele wrote: With a new installation of cmsms with data example, debug=true in config.php, this are the errors when, for example, I click this url
Try this
I must investigate because I have not this

Alby

Re: 404 error page with custom template don't work

Posted: Tue Mar 10, 2009 5:16 pm
by carasmo
May all your dreams come true and you become filthy rich with a big heart!

Thanks!!!!

Re: 404 error page with custom template don't work

Posted: Tue Mar 10, 2009 5:17 pm
by carasmo
http://forum.cmsmadesimple.org/index.ph ... 669.0.html

Yeah, that fixed it. It's a new thing with the latest version, good simple fix in the template.

Re: 404 error page with custom template don't work

Posted: Wed Mar 11, 2009 6:40 am
by Samuele
This is the solution.

Now it works.