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

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
    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.

    Linelabox support
    The reply is currently minimized Show
Your Reply

VirtueMart Admin Theme


Responsive VirtueMart 3 Administrator Template


New Joomla! 3 Template


Responsive Joomla 3 Template / VirtueMart 3 Theme

Template Demo

Recent Discussions

Dobrý den, potřeboval bych prosím doladit One Page Checkout. U produktů mám na...
23 hours ago 0
When I install a ultimelab template on my site, right away a lot of overrides ar...
2 weeks ago 0
Hello. I have problem with export xml for google merchant. In xml settings - x...
1 month ago 0
Dobrý den, ve čtvrtek jsem od vás koupili balíček Professional. Peníze jsme vám...
1 month ago 2

Who's Online

We have 553 guests and 2 members online 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 - 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.