Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support PHP errors Template
MarStroiu
Posted on 19 Jul 2012, 16:36:44

Access: Member
Total Posts: 2
Joined: 2012-07-19

Hy,

I get some PHP errors while I'm trying to edit the 4.0 Ajax Template, just when I click on the edit template icon, I get the following errors:

Notice: Undefined index: comments_hidden in E:\localhost\www\html5\noticias\modules\modtemplate.php on line 238 Call Stack #TimeMemoryFunctionLocation 10.0039493976{main}( )..\admin.php:0 21.11172181048require_once( 'E:\localhost\www\html5\noticias\modules\admindata.php' )..\admin.php:339 31.11672537728require_once( 'E:\localhost\www\html5\noticias\modules\modtemplate.php' )..\admindata.php:99 41.11672537976templateform( )..\modtemplate.php:643 0" id="comments_hidden" name="comments_hidden">

I get that error at each table, here is a PS: PHP Error PrintScreen

PS: And another thing, when I click read full story, the path is incorrect, is like localhost/myfolder/?id=1, it has to be localhost/myfolder/news?id=1, no ? where can I change that path, Thx. (

PrintScreen

)

#3902
Last edited by MarStroiu at 2012-07-19 17:46:27 Reason: add printscreen path issue
Chris
Posted on 19 Jul 2012, 17:32:30

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

The error message you're seeing isn't a major error, just a coding standard warning. You can disable those warnings by editing your php.ini file, changing error reporting to the following

error_reporting = E_ALL | E_STRICT

If the path is incorrect when you click the Read More link, instead of using the [readmore][/readmore] tags in the template, use your own custom link like so

<a href="http://example.com/myfolder/news?id={id}">{title}</a>
#3903
MarStroiu
Posted on 19 Jul 2012, 17:46:27

Access: Member
Total Posts: 2
Joined: 2012-07-19

At the end I read how to display correctly the url, editind the .htaccess, etc. But when I click the read more link, I get a 404 Not found page!

Thank you for the quick reply.

#3904
Network-13.com © 2013