Author Topic: [solved] Search module fatal error  (Read 3808 times)

nflmerch

  • Jr. Member
  • **
  • Posts: 114
[solved] Search module fatal error
« on: December 10, 2011, 00:27:20 am »
RC3 version H
j1.7
I Uninstalled all plugins and modules and the AIO installer before upgrading.

The Search module does not work.
Most of the time it just goes to my shop's main category page with no search query or result shown.

One time, I got the following error when searching:
Fatal error: Using $this when not in object context in C:\inetpub\wwwroot\new\administrator\components\com_virtuemart\helpers\currencydisplay.php on line 96

nflmerch

  • Jr. Member
  • **
  • Posts: 114
Re: Search module fatal error
« Reply #1 on: December 10, 2011, 00:59:46 am »
I just noticed the fatal error with currencydisplay.php is NOT specific to the search query.  It happens alot.

But the search module not showing any results still holds true

nflmerch

  • Jr. Member
  • **
  • Posts: 114
Re: Search module fatal error
« Reply #2 on: December 12, 2011, 22:24:42 pm »
RC3 version J does the same thing, except now on line 98

Fatal error: Using $this when not in object context in C:\inetpub\wwwroot\new\administrator\components\com_virtuemart\helpers\currencydisplay.php on line 98

bunglehaze

  • Jr. Member
  • **
  • Posts: 487
Re: Search module fatal error
« Reply #3 on: December 12, 2011, 22:44:38 pm »
If you are using any product modules turn the price on, for some reason i am getting the same when price is turned off.

nflmerch

  • Jr. Member
  • **
  • Posts: 114
Re: Search module fatal error
« Reply #4 on: December 12, 2011, 23:04:17 pm »
Thanks bunglehaze, you are correct.  Unfortunately I don't want the price listed in the module, so I'll just wait until that's fixed.

I also tried the currencydisplay.php file that Milbo suggested here:
http://forum.virtuemart.net/index.php?topic=94717.msg310902#msg310902
But that gave me even more errors and problems.

Either way, even if I turn on the price in the product module, the Search Module does not show any search results.   :-*

bunglehaze

  • Jr. Member
  • **
  • Posts: 487
Re: Search module fatal error
« Reply #5 on: December 12, 2011, 23:05:24 pm »
create an override of the template default.php and strip out the price sections, see if that works.

nflmerch

  • Jr. Member
  • **
  • Posts: 114
Re: Search module fatal error
« Reply #6 on: December 12, 2011, 23:26:01 pm »
Actually, I just noticed that when I turn on the Product Module price, it doesn't show up anyway, seems like another bug.

Now that we know what the problem is, I could hack the code myself, but since I'm still just testing a demo shop, I shall wait til it's all fixed.

Now on to the Search query not producing any results...

bunglehaze

  • Jr. Member
  • **
  • Posts: 487
Re: Search module fatal error
« Reply #7 on: December 12, 2011, 23:31:15 pm »
can't help with that one, sorry. My install searches fine - check the plugins folder to make sure all the files uploaded properly, I found one earlier that hadn't

nflmerch

  • Jr. Member
  • **
  • Posts: 114
Re: Search module fatal error
« Reply #8 on: December 12, 2011, 23:34:55 pm »
I already deleted all the plugins, modules, and AIO installer, but I'm trying again now.

It always gives me this error when uninstalling the plugins:
And then it will not uninstall the VMSHIPMENT_WEIGHT_COUNTRIES plugin

Failed deleting en-GB.plg_search_virtuemart.ini
Failed to delete C:\inetpub\wwwroot\new/administrator/language/en-GB/en-GB.plg_search_virtuemart.ini
Failed deleting fr-FR.plg_search_virtuemart.ini
Failed to delete C:\inetpub\wwwroot\new/administrator/language/fr-FR/fr-FR.plg_search_virtuemart.ini
Failed deleting en-GB.plg_vmcustom_specification.ini
Failed to delete C:\inetpub\wwwroot\new/administrator/language/en-GB/en-GB.plg_vmcustom_specification.ini
Failed deleting fr-FR.plg_vmcustom_specification.ini
Failed to delete C:\inetpub\wwwroot\new/administrator/language/fr-FR/fr-FR.plg_vmcustom_specification.ini
Failed deleting fr-FR.plg_vmcustom_textinput.ini
Failed to delete C:\inetpub\wwwroot\new/administrator/language/fr-FR/fr-FR.plg_vmcustom_textinput.ini
Plugin Uninstall: Manifest file invalid or not found.


bunglehaze

  • Jr. Member
  • **
  • Posts: 487
Re: Search module fatal error
« Reply #9 on: December 12, 2011, 23:45:26 pm »
manually delete the files IMO. I have had loads of problems uploading and deleting modules and plugin and the only way around it was to set chmod to 777 for all files and directories.

nflmerch

  • Jr. Member
  • **
  • Posts: 114
Re: Search module fatal error
« Reply #10 on: December 13, 2011, 00:08:33 am »
I was able to delete everything manually AFAIK but no luck with the search results yet.

nflmerch

  • Jr. Member
  • **
  • Posts: 114
Re: Search module fatal error
« Reply #11 on: December 13, 2011, 22:24:15 pm »
FYI, my issue with no search results remains with RC3 K

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9919
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Search module fatal error
« Reply #12 on: December 14, 2011, 01:08:24 am »
You must go in your config, set the new ordering and store it one time.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

nflmerch

  • Jr. Member
  • **
  • Posts: 114
Re: Search module fatal error
« Reply #13 on: December 14, 2011, 23:33:28 pm »
Thanks Milbo, that did work!

I already had some boxes checked off, but I had to check and uncheck some and save again for it to work.