VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: DimitriDV on October 14, 2014, 11:37:49 AM

Title: Ask a question shows error
Post by: DimitriDV on October 14, 2014, 11:37:49 AM
I installed VM and I set my e-mail address everywhere correct. The contact form works perfect, but the 'ask a question' functionality does not work.
The error can be found here:

Warning: attempt to assign property of non-object in /home/domains/public_html/administrator/components/com_virtuemart/modules/media
on line 414 Fatal error: cannot use object of type JUser as array in /home/domains/public_html/components/com_virtuemart/views/askaquestion/bview.htm on line 189

Title: Re: Ask a question shows error
Post by: jenkinhill on October 14, 2014, 12:03:17 PM
http://forum.virtuemart.net/index.php?topic=79799.0

In default VM there is no such file as views/askaquestion/bview.htm
Title: Re: Ask a question shows error
Post by: DimitriDV on October 15, 2014, 08:19:28 AM
Thanks a lot for your answer. This is the detailed error when I set error reporting to maximum:

Strict Standards: Only variables should be assigned by reference in /home/onlinemark/domains/online-marketing-bedrijf.be/public_html/dave/components/com_virtuemart/helpers/shopfunctionsf.php on line 430 Warning: Attempt to assign property of non-object in /home/onlinemark/domains/online-marketing-bedrijf.be/public_html/dave/administrator/components/com_virtuemart/models/media.php on line 414 Fatal error: Cannot use object of type JUser as array in /home/onlinemark/domains/online-marketing-bedrijf.be/public_html/dave/components/com_virtuemart/views/askquestion/view.html.php on line 189


When I set the error reporting to System Default, a blank page is shown.
The URL: http://online-marketing-bedrijf.be/dave/component/virtuemart/sullivan-detail
PHP 5.3.18
Joomla 3.3.6

Do you need the VM version also?
How can I check my VirtueMart version please?
Title: Re: Ask a question shows error
Post by: jenkinhill on October 15, 2014, 10:31:52 AM
If you are using J3.3.6 then you are using a test/development version of VM - moving to the development board.

And yes, the VM version is most important. The version can be seen using Joomla's extensions manager.
Title: Re: Ask a question shows error
Post by: DimitriDV on October 15, 2014, 16:40:01 PM
Thanks!

The version is 2.9.9b
Title: Re: Ask a question shows error
Post by: jenkinhill on October 15, 2014, 16:44:39 PM
Well the public testing version is 2.9.9e which you should now try, and we are internally testing 2.9.9f which will be in public release soon. 

http://dev.virtuemart.net/projects/virtuemart/files
Title: Re: Ask a question shows error
Post by: DimitriDV on October 16, 2014, 09:42:25 AM
I did the upgrade.
When I press the 'ask a question' button, the site redirects to the homepage.

???


Example: http://online-marketing-bedrijf.be/dave/component/virtuemart/sullivan-detail
Title: Re: Ask a question shows error
Post by: GJC Web Design on October 16, 2014, 12:38:03 PM
js error ->  TypeError: jQuery(...).fancybox is not a function

this is what is causing it - your not loading fancybox - check your VM config and template
Title: Re: Ask a question shows error
Post by: DimitriDV on October 16, 2014, 17:17:10 PM
Check my VM config? How?

This is a default installation.
Title: Re: Ask a question shows error
Post by: jenkinhill on October 16, 2014, 17:52:15 PM
Quote from: DimitriDV on October 16, 2014, 17:17:10 PM
This is a default installation.

But not a default template.  Fancybox is turned on in VM Configuration/Templates/Activate Css Styles & Javascripts
Title: Re: Ask a question shows error
Post by: DimitriDV on October 17, 2014, 08:07:55 AM
So I should set "Use Fancybox" off?
I did this. The link 'ask a question' still redirects to homepage.
Title: Re: Ask a question shows error
Post by: GJC Web Design on October 18, 2014, 00:53:02 AM
no - you are trying to use fancybox in your template but you aren't loading its library - so use fancybox->yes
Title: Re: Ask a question shows error
Post by: DimitriDV on October 20, 2014, 09:39:40 AM
It was already set to 'Yes', I don't think this is the solution