| Author |
Message |
rosbif


Joined: Jan 13, 2005 Posts: 571 Location: Paris, France
|
Post subject: [solved] Error in theme footer templates? Posted: Thu Dec 24, 2009 10:03 am |
|
There's a slight error in footer.html in the templates folder. From line 24 should read (to stop php and sql messages being displayed to non-admin)
PHP:
{S_FOOTER} <!-- IF S_IS_ADMIN --> <!-- IF S_DEBUG_SQL --><div class="table1">{S_DEBUG_SQL}</div><!-- ENDIF --> <!-- IF S_DEBUG_PHP --><div class="table1">{S_DEBUG_PHP}</div><!-- ENDIF --> <!-- ENDIF --> </div>
(Thanks Diz!)
rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.2.11/5.0.77/5.2.8/9.2.1 |
|
| Back to top |
|
 |
Phoenix


Joined: Apr 19, 2004 Posts: 8729 Location: Netizen
|
|
| Back to top |
|
 |
Dizfunkshunal


Joined: Mar 23, 2006 Posts: 2079
|
Post subject: Re: reDesign 2 Posted: Thu Dec 24, 2009 3:46 pm |
|
debug only shows up for me on default theme when i am logged in as admin. On rosbif site with the theme he is using it shows to everyone.
_________________ Diz Web Design Status: Open (Use of resources requires registration.)
Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Multiple Setups |
|
| Back to top |
|
 |
Phoenix


Joined: Apr 19, 2004 Posts: 8729 Location: Netizen
|
Post subject: Re: reDesign 2 Posted: Thu Dec 24, 2009 11:41 pm |
|
The theme's not the problem - it's clear that he has set CPG_DEBUG.
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
 |
|
| Back to top |
|
 |
rosbif


Joined: Jan 13, 2005 Posts: 571 Location: Paris, France
|
Post subject: Re: reDesign 2 Posted: Sat Dec 26, 2009 10:44 am |
|
Phoenix wrote:
The theme's not the problem - it's clear that he has set CPG_DEBUG.
I don't even know how to do that?! All I did was tick the boxes on the admin pages..
rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.2.11/5.0.77/5.2.8/9.2.1 |
|
| Back to top |
|
 |
Phoenix


Joined: Apr 19, 2004 Posts: 8729 Location: Netizen
|
Post subject: Re: reDesign 2 Posted: Sat Dec 26, 2009 8:31 pm |
|
The php and mysql debug info can only appear if:
You have edited footer.php and removed the existing permission checks
or
You have set "Full debugging" to "Yes" in admin.php?op=settings&s=11 (perhaps inadvertently)
or
You have directly edited the CPG_DEBUG setting in config.php which achieves the same
Theme templates do not require extra permission checks - they already exist in footer.php.
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
 |
|
| Back to top |
|
 |
NanoCaiordo


Joined: Jun 29, 2004 Posts: 3677 Location: Melbourne, AU
|
Post subject: Re: Error in theme footer templates? Posted: Sun Dec 27, 2009 3:00 am |
|
What Phoenix said.
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) MySQL 5.1 / PHP 5.3 / NextGen() |
|
| Back to top |
|
 |
rosbif


Joined: Jan 13, 2005 Posts: 571 Location: Paris, France
|
Post subject: Re: reDesign 2 Posted: Sun Dec 27, 2009 8:49 am |
|
Phoenix wrote:
The php and mysql debug info can only appear if:
You have edited footer.php and removed the existing permission checks
or
You have set "Full debugging" to "Yes" in admin.php?op=settings&s=11 (perhaps inadvertently)
or
You have directly edited the CPG_DEBUG setting in config.php which achieves the same
Theme templates do not require extra permission checks - they already exist in footer.php.
I've looked and full debugging was set to yes. I've no idea what that setting does so presume that is the problem?
rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.2.11/5.0.77/5.2.8/9.2.1 |
|
| Back to top |
|
 |
rosbif


Joined: Jan 13, 2005 Posts: 571 Location: Paris, France
|
Post subject: Re: Error in theme footer templates? Posted: Sun Dec 27, 2009 11:44 am |
|
Have turned full debugging to no and I am now getting around 24 emails an hour like this:
Quote:
On /CPGNuCalendar/view=event/id=610/BD/op=directory/cid=88.html
While executing query "SELECT uoe_id, user_id, user_name, event_id, event_date FROM chantill_cpgnucalendar_user_on_event WHERE event_id =610 AND event_date ="
the following error occured: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
In: /home/chantill/public_html/modules/CPGNuCalendar/index.php on line: 859
Guest information:
User id: 1
Username: Anonymous
Admin: No
IP: 67.195.113.250
Host: b3091018.crawl.yahoo.net
They are all malformed URLs - how do I stop them now as I wasn't getting them before
rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.2.11/5.0.77/5.2.8/9.2.1 |
|
| Back to top |
|
 |
Phoenix


Joined: Apr 19, 2004 Posts: 8729 Location: Netizen
|
Post subject: Re: Error in theme footer templates? Posted: Sun Dec 27, 2009 12:46 pm |
|
Your CPG_DEBUG issue is resolved - you'll have to address the other issue elsewhere with whoever is responsible for that sql query.
I'm certainly not familiar with it - not part of any standard release that I know of.
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
 |
|
| Back to top |
|
 |
rosbif


Joined: Jan 13, 2005 Posts: 571 Location: Paris, France
|
Post subject: Re: [solved] Error in theme footer templates? Posted: Sun Dec 27, 2009 1:15 pm |
|
The sql query is a mishmash from CPGNuCalendar and BD (business directory) so it doesn't actually exist. I've turned full debugging back to yes and it's stopped them again. What exactly does it do?
rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.2.11/5.0.77/5.2.8/9.2.1 |
|
| Back to top |
|
 |
Phoenix


Joined: Apr 19, 2004 Posts: 8729 Location: Netizen
|
Post subject: Re: [solved] Error in theme footer templates? Posted: Sun Dec 27, 2009 1:29 pm |
|
The query clearly does exist or you wouldn't have the problem.
Please refer it to the author of whatever hack you have applied to CPGNuCalendar.
The theme issue is done.
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
 |
|
| Back to top |
|
 |
rosbif


Joined: Jan 13, 2005 Posts: 571 Location: Paris, France
|
Post subject: Re: [solved] Error in theme footer templates? Posted: Sun Dec 27, 2009 1:56 pm |
|
I am getting random SQL queries, all starting with CPGNuCalendar but then having bits added on from random other modules. It is always a bot that generates them
rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.2.11/5.0.77/5.2.8/9.2.1 |
|
| Back to top |
|
 |
Phoenix


Joined: Apr 19, 2004 Posts: 8729 Location: Netizen
|
Post subject: Re: [solved] Error in theme footer templates? Posted: Mon Dec 28, 2009 12:50 am |
|
Quote:
What exactly does it do? When CPG_DEBUG is set, errors are displayed instead of emailed - that means you expose your site issues to everyone.
As I have already stated twice, you need to address the other issue to the author of whatever CPGNuCalendar hack you are using - this topic is done.
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
 |
|
| Back to top |
|
 |