Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New Coder
    Join Date
    Oct 2009
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts

    PHP error changing form input field

    Hi guys,

    I am having an issue trying to change a 'select' field to 'text' in my searchform.

    I get the following error when i attempt a search
    Fatal error: Call to undefined method SearchListingFullText::GetRow() in /var/www/html/includes/class_search.php on line 347

    This is the code i am attemting to change in SEARCH.PHP

    PHP Code:
    $search_form_object->addField('category','text',array('label'=>$PMDR->getLanguage('public_general_search_category'),'fieldset'=>'search','value'=>$_GET['category'],'style'=>'width: 220px; height: 28px;','first_option'=>'','options'=>$db->GetAssoc("SELECT id, title FROM ".T_CATEGORIES." WHERE hidden=0 AND level=1 ORDER BY left_"),'class'=>'input_small')); 


    This is line 347 in CLASS_SEARCH.PHP

    PHP Code:
    PXwDU25kleTryLM9NRZEQ/yERK3Lw6zr/GCVESefeiG+OsJlgPMFDys2fwkDbKPpMacQx1plzZew 
    Thanks guys

  • #2
    New Coder
    Join Date
    Jul 2009
    Location
    Internet
    Posts
    37
    Thanks
    0
    Thanked 4 Times in 4 Posts
    This line #347 seem to be an encrypted php code. You need to get php source code to debug this script.

  • #3
    Regular Coder
    Join Date
    Mar 2006
    Posts
    238
    Thanks
    3
    Thanked 37 Times in 37 Posts
    The error says that the method GetRow() dos not exist in in the class SearchListingFullText.

    Please check if GetRow() exists in the class SearchListingFullText. Also please check that you are calling GetRow() on an instance (object) of a correct class (I mean it could be that GetRow() exists in some other class but you are calling it on an object of SearchListingFullText by mistake).

    I am sorry, but I am afraid it would be really difficult to help without seeing more code.

    Also the line you have shown looks like part of some string. It does not look like PHP code ... Could your PHP code be encoded with something like Zend Guard or IonCube by any chance?

    Edit: Sergey Popov has been faster to answer...

  • #4
    New Coder
    Join Date
    Oct 2009
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts
    I have attached the class_search.php file pasted in txt format.

    Let me what you think.

    Again Thanks guys much appreciated!!
    Attached Files Attached Files

  • #5
    Regular Coder
    Join Date
    Mar 2006
    Posts
    238
    Thanks
    3
    Thanked 37 Times in 37 Posts
    Yes, it is encoded with IonCube. You would be unable to see the PHP code.

    Probably you have documentation for the class. So that you could check which methods the class actually contains.

    In case you are using PHP5, probably you could try Reflection API to check the class structure. I said "try" because personally I did not try Reflection API on encoded code so I am not sure it it would work ...

  • #6
    New Coder
    Join Date
    Oct 2009
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Thanks SKD,

    Yeh there is ioncube encryption.

    From your experience (if any) with script developers, would they be cooperative in providing source code for the encryped php file?


    Thanks mate

  • #7
    Regular Coder
    Join Date
    Mar 2006
    Posts
    238
    Thanks
    3
    Thanked 37 Times in 37 Posts
    I am sorry, I never asked such developers to provide the source code ... Still if they encrypt the code and sell it, I think they should provide some documentation or answer questions ... I would definitely ask them I think.

    I can not say for the developers of course ... I know if I encrypted anything, I would answer questions for sure ...

    Though honestly speaking personally I try not to use encrypted code. Probably because if I use a 3rd party code, I want to check the programming style (to get an opinion how experienced the programmer who wrote it was), possibility of SQL injections and other possible security holes etc. Since with encrypted code this is not possible, I am trying not to use such server-side code without really strong need. Though this is my personal opinion only. Personally I am a little bit paranoic about security and usually do not trust any server-side code which I can not check myself. Again: this is my personal opinion only which could be wrong of course.

  • Users who have thanked SKDevelopment for this post:

    mrkorg (10-12-2009)

  • #8
    New Coder
    Join Date
    Oct 2009
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Mate you have been a great help!

    I am not fluent enough with php to assert any opinion to the contrary.

    I myself am more familiar with html.

    Could you please take a look at this issue i am having if you have the chance?

    Here is a link http://codingforums.com/showthread.php?t=179430

    Thanks again
    Last edited by mrkorg; 10-12-2009 at 03:27 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •