Forum Index   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
MACscrOffline



Joined: Jan 11, 2005
Posts: 128

Status: Offline
Post   Posted: Jan 12, 2005 - 01:17 PM Reply with quote Back to top

Im getting this at the top of my page.

Quote:

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 ' FROM WHE


I have edited the templates to display the profile, but im pretty sure i got the same error then too. Everything else appears to display correctly even with error. Let me check what my Mysql version is, I know its pretty up to date.


Last edited by MACscr on Jan 12, 2005 - 01:23 PM; edited 1 time in total
View user's profile Send private message Visit poster's website AIM Address
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Jan 12, 2005 - 03:06 PM Reply with quote Back to top

Remove all plugins that you do not use... pncuserpoints for example.

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
MACscrOffline



Joined: Jan 11, 2005
Posts: 128

Status: Offline
Post   Posted: Jan 12, 2005 - 04:51 PM Reply with quote Back to top

I removed all the plugins except the pnphpbb one, which im using. Got rid of error. Thanks.
View user's profile Send private message Visit poster's website AIM Address
dankOffline



Joined: May 18, 2005
Posts: 1

Status: Offline
Post   Posted: May 18, 2005 - 12:53 AM Reply with quote Back to top

I'm having the same problem and removal of the plugins results in a blank page when calling advProfile
View user's profile Send private message
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: May 18, 2005 - 02:11 AM Reply with quote Back to top

In advProfile 2.0, you can remove only the plugin call in the templates (main, activity, etc)... Removing the plugin files without removing the call in the templates will result in various smarty errors...

Removing the plugin call without removing the files is ok.

_________________
Chestnut ! Cool
Administrator
PNConcept.com


Last edited by Chestnut on May 18, 2005 - 02:13 AM; edited 1 time in total
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
MACscrOffline



Joined: Jan 11, 2005
Posts: 128

Status: Offline
Post   Posted: May 28, 2005 - 10:55 PM Reply with quote Back to top

Chestnut wrote:
In advProfile 2.0, you can remove only the plugin call in the templates (main, activity, etc)... Removing the plugin files without removing the call in the templates will result in various smarty errors...

Removing the plugin call without removing the files is ok.


Why would you want to do it that way? Its not much of a plugin if its required.
View user's profile Send private message Visit poster's website AIM Address
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: May 28, 2005 - 11:08 PM Reply with quote Back to top

Not sure I grasp what you mean...

In advProfile 1.x, the module was checking the content of the pnplugins folder, including all files and executing all functions.
Wich is far from a good thing.

In advProfile 2.0, using the smarty call, the file is included only if called in the template. If the plugin tag is not in the template, the plugin file is useless.

There is nothing required. (Except that if you put the call in your template, you have to have the file of course.)
Wink

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
MACscrOffline



Joined: Jan 11, 2005
Posts: 128

Status: Offline
Post   Posted: May 29, 2005 - 12:08 AM Reply with quote Back to top

lol, my bad, read that wrong. Thought the files had to be in the directory no matter what.
View user's profile Send private message Visit poster's website AIM Address
hardtrancerOffline



Joined: Jun 05, 2004
Posts: 7

Status: Offline
Post   Posted: Jun 04, 2005 - 05:46 PM Reply with quote Back to top

Removing 2 plugins doesn't work for me.
I still have this sql error message, also the german language isn't working even with a deu directory created Sad

pn0.760-RC4 and advProfiles2.0
View user's profile Send private message
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Jun 04, 2005 - 06:14 PM Reply with quote Back to top

You have to remove the plugin call in the templates.
Example :
Code:

<!--[pncpaypal uid=$uid]--> <------ remove this


Also, go to your pnRender administration and click on the "delete compiled templates" and "delete cached..." to make sure that what you are seeing is not an old page. You can also set "force template compilation" to on while you are trying to make it work right.

I don't have Deu files so can't say for the moment but if you rename the eng to deu... it should work. After that, replace one by one the eng files (in your deu folder). Maybe there was an incomplete file...

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
hardtrancerOffline



Joined: Jun 05, 2004
Posts: 7

Status: Offline
Post   Posted: Jun 06, 2005 - 12:46 PM Reply with quote Back to top

I did remove all this, also those with uname in it - but the error ist still there Sad
View user's profile Send private message
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Jun 06, 2005 - 01:22 PM Reply with quote Back to top

Must be something you do or not do...

Replace the plugins with the one you'll found on this page... I made a change that will show the name of the plugin having the problem.

http://noc.postnuke.com/plugins/scmcvs/cvsweb.php/plugins/advProfile/pntemplates/plugins/?cvsroot=cvsroot%2Fpnconcept

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
VinyardOffline



Joined: Sep 09, 2005
Posts: 2

Status: Offline
Post   Posted: Sep 09, 2005 - 09:09 AM Reply with quote Back to top

I had this problem and I had to fumble around with it before I got it. SO here is a dumbed down way of how to get rid of that error

go into the
modules/advprofile/pntemplates/default

and edit
advProfile_user_main.tpl & advProfile_user_all.tpl

delete these lines

<!--[pncuserpoints uid=$uid assign="pncuserpoints"]-->
<!--[if $pncuserpoints != false]-->
<tr>
<td class="title"><!--[pnml name="_USERPOINTSTITLE"]--></td>
<td><!--[$pncuserpoints|pnvarprepfordisplay]--></td>
</tr>
<!--[/if]-->


and these ones

<!--[pncpaypal uname=$USERNAME_VALUE assign="pncpaypal"]-->
<!--[if $pncpaypal != false]-->
<tr>
<td class="title"><!--[pnml name="_PNCPPCONTRIBUTIONS"]--></td> <td><!--[$pncpaypal.amount|pnvarprepfordisplay]-->&nbsp;(<!--[$pncpaypal.nbipn|pnvarprepfordisplay]-->)</td>
</tr>
<!--[/if]-->

THis worked for me.
View user's profile Send private message
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits
DarkMindZ