VirtueMart Forum

VirtueMart 2 + 3 => Virtuemart Development and bug reports => Topic started by: nflmerch on December 10, 2011, 00:27:20 am

Title: [solved] Search module fatal error
Post by: nflmerch 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
Title: Re: Search module fatal error
Post by: nflmerch 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
Title: Re: Search module fatal error
Post by: nflmerch 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
Title: Re: Search module fatal error
Post by: bunglehaze 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.
Title: Re: Search module fatal error
Post by: nflmerch 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.   :-*
Title: Re: Search module fatal error
Post by: bunglehaze 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.
Title: Re: Search module fatal error
Post by: nflmerch 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...
Title: Re: Search module fatal error
Post by: bunglehaze 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
Title: Re: Search module fatal error
Post by: nflmerch 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.

Title: Re: Search module fatal error
Post by: bunglehaze 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.
Title: Re: Search module fatal error
Post by: nflmerch on December 13, 2011, 00:08:33 am
I was able to delete everything manually AFAIK but no luck with the search results yet.
Title: Re: Search module fatal error
Post by: nflmerch on December 13, 2011, 22:24:15 pm
FYI, my issue with no search results remains with RC3 K
Title: Re: Search module fatal error
Post by: Milbo on December 14, 2011, 01:08:24 am
You must go in your config, set the new ordering and store it one time.
Title: Re: Search module fatal error
Post by: nflmerch 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.