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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
Samuele
Forum Members
Forum Members
Posts: 21
Joined: Wed Feb 04, 2009 8:15 am

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

Post 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?
Last edited by Samuele on Wed Mar 11, 2009 6:41 am, edited 1 time in total.
_________________________________________________
Samuele
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post by calguy1000 »

Please follow forum rules when posting.

You've been warned.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
Samuele
Forum Members
Forum Members
Posts: 21
Joined: Wed Feb 04, 2009 8:15 am

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

Post by Samuele »

calguy1000 wrote: Please follow forum rules when posting.

You've been warned.
Why? What I did wrong?
_________________________________________________
Samuele
User avatar
Samuele
Forum Members
Forum Members
Posts: 21
Joined: Wed Feb 04, 2009 8:15 am

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

Post 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.
_________________________________________________
Samuele
alby

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

Post 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
User avatar
Samuele
Forum Members
Forum Members
Posts: 21
Joined: Wed Feb 04, 2009 8:15 am

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

Post 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
_________________________________________________
Samuele
alby

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

Post 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
alby

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

Post 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
User avatar
Samuele
Forum Members
Forum Members
Posts: 21
Joined: Wed Feb 04, 2009 8:15 am

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

Post 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
_________________________________________________
Samuele
alby

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

Post 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
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

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

Post by carasmo »

May all your dreams come true and you become filthy rich with a big heart!

Thanks!!!!
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

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

Post 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.
User avatar
Samuele
Forum Members
Forum Members
Posts: 21
Joined: Wed Feb 04, 2009 8:15 am

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

Post by Samuele »

This is the solution.

Now it works.
_________________________________________________
Samuele
Post Reply

Return to “CMSMS Core”