Linelabox Support

Hello there! Welcome to Linelabox Support Forum. Post your question and our support specialists will help you. Look for the solution in the F.A.Q. first. Our support team is available for any questions or issues in the following working hours: Monday - Friday: 10:00 - 18:00.

Upload plug-in error

Dweeze
Dweeze
Offline
Hi I get the following warning on the product page when using the Simple File Upload plug-in:

Warning: Missing argument 1 for JSession::getInstance(), called in /home/catalog/plugins/vmcustom/fileinput/fileinput/tmpl/default.php on line 25 and defined in /home/catalog/libraries/joomla/session/session.php on line 178

Warning: Missing argument 2 for JSession::getInstance(), called in /home/catalog/plugins/vmcustom/fileinput/fileinput/tmpl/default.php on line 25 and defined in /home/catalog/libraries/joomla/session/session.php on line 178

Also there´s only a "Chose File" button, no "Upload" button. When I choose a file and "Add to Cart" no file is uploaded,

It´s a Joomla 3.6.2 install with Virtuemart 3.0.16
Responses (1)
  • Accepted Answer

    Friday, September 23 2016, 09:34 AM - #permalink
    0
    Hello open the file /home/catalog/plugins/vmcustom/fileinput/fileinput/tmpl/default.php
    and replace the code
    $session = JSession::getInstance();

    at line 25 by this code:

    $conf = JFactory::getConfig();
    $handler = $conf->get('session_handler', 'none');
    $options['expire'] = ($conf->get('lifetime')) ? $conf->get('lifetime') * 60 : 900;

    $session = JSession::getInstance($handler, $options);
    $session_id = $session->getId();


    This bug will be fixed at next release of plugin.

    Regards
    Linelabox support
    The reply is currently minimized Show
Your Reply

VirtueMart Admin Theme

VMADMINLAB

Responsive VirtueMart 3 Administrator Template

Download
JOIN NOW!

New Joomla! 3 Template

REVOLAB

Responsive Joomla 3 Template / VirtueMart 3 Theme

Template Demo
JOIN NOW!

Recent Discussions

What can I do to get "orders layout" responsive? What I mean is the pa...
13 hours ago 0
I just bout VM mega menu but apparently it is not doing what it says it is doing...
2 days ago 1
Hello, I'm having an issue with Category pagination. When a category contains...
4 days ago 2
Hi! Where can I find translation for "-navigation-" (menu) in mobile v...
4 days ago 3

Who's Online

We have 227 guests and 2 members online

Linelabox.com is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries.
Copyright © 2014 Linelabox.com - Joomla! 3 / VirtueMart 3 Templates. All Rights Reserved.
Joomla! is Free Software released under the GNU General Public License. All other marks are the property of their respective owners.
LINELAB WEBDESIGN