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

Dobrý den, ve čtvrtek jsem od vás koupili balíček Professional. Peníze jsme vám...
13 hours ago 0
Hi, I made my first template. I dont need the whole template. only category,pro...
5 days ago 0
Hi, I bought the professional package because I want the MegaTheme for my Joomla...
1 week ago 2
Hello, I have purchased simple upload. I have a few questions: I select a ...
2 weeks ago 6

Who's Online

We have 428 guests and one member 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