This is a discussion on Querystring Hot Fix within the v3.1 Questions & Support forums, part of the v3.1 Legacy Help & Support category; The following is what I get when I try to search a category: [CPAINT] A function name was passed that ...
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
The following is what I get when I try to search a category:
[CPAINT] A function name was passed that is not allowed to execute on this server. The extra searchable fields are no longer available to search either. I click on a category to search, usually several extra fields appear but this no longer happens. I just get this message. This after the uploading the querystring hot fix. Any suggestions? |
|
#2
|
|||
|
|||
|
It appears that your host has disallowed a function that lets the extra fields appear on the search page via AJAX. Do you know if your host has made any changes lately?
You may want to try and contact your host and try to find out what the 'offensive' function is. |
|
#3
|
||||
|
||||
|
Also can you post a link to your site?
I have seen this error when using IE. I believe if you have defined your website url in administration as www.mysite.com and then try to view mysite.com with the www it could throw out this error. I am not sure if this your problem or not but it is something you can test.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
#4
|
|||
|
|||
|
I don’t think this problem has anything to do with my host. The error only showed up after the hot fix was uploaded. I then uploaded the original and the error no longer displayed. The extra fields still did not appear when a category is searched but there was no error. I’m pretty sure the extra fields were displaying before the hot fix but not sure why with the originals back they aren’t. I double checked my admin to make sure these fields were still set as searchable and they are. I am using IE and have the website url in admin as http://www.mysite.com but never seen this error before. I’ll PM you a link and ftp info if you wouldn’t mind taking a look at your earliest convenience.
|
|
#5
|
||||
|
||||
|
The files in the hot fix do not have any control with that error. However I did go in and I think it is an error in your template file search.tpl.php. You could be using the search template from v3.0.x which may be different.
So I manually edited that file search.tpl.php and fixed the javascript.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
#6
|
|||
|
|||
|
Thanks Eric, works perfect.
You were right about the url, no errors but the extra fields won’t show if a link to the search page is inputted without www in the url. I have a search in the nav table which works fine and another as a link when a particular gif is clicked on. I had the gif linked to http://mysite.com instead of www, when a search is tried this way the extra fields don’t appear. As soon as I added the www to the gif link the extra fields appeared. This wasn’t an issue pre-upgrade though. How is that I could still be using the search template from v3.0.x when I’ve upgraded to v3.1.0? Don’t the files of the same name automatically get overwritten? |
|
#7
|
||||
|
||||
|
Quote:
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |