Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Site cannot be reached & undefined index: mime
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Site cannot be reached & undefined index: mime
#60548
Site cannot be reached & undefined index: mime 6 Years, 9 Months ago Karma: 0
Hello all,

This is fix to a problem I encountered using ARTIO JoomDOC with Doc viewer. I was getting the 'This site can’t be reached' error on displaying document detail.

Once Joomla site debugging was enabled, this then showed
Undefined index: mime in /var/webs/blah.org.uk/libraries/arisoft/Arisoft/Joomla/Document/Includesmanager.php on line 99

The lines of code at this reference are:
Code:


if (is_array($type))
$type = $type['mime'];
$differences[] = sprintf('<script type="%s" src="%s"></script>', $type, $script);
}



The fix was to define the value of 'mime' as 'application/javascript' (what researched told me the 'type' should be).
The amended code is as follows:
Code:


if (is_array($type))
$type = $type['mime'] = 'application/javascript';
$differences[] = sprintf('<script type="%s" src="%s"></script>', $type, $script);
}



I hope this is helpful to other people.
The administrator has disabled public write access.
 
#60549
Re:Site cannot be reached & undefined index: mime 6 Years, 9 Months ago Karma: 746
Hello,

Check that you use the latest version of the plugin (2.1.2). It contains fix for this problem.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#60550
Re:Site cannot be reached & undefined index: mime 6 Years, 9 Months ago Karma: 0
You're absolutely right - It does

Just a note on the installer package - It's not tidying up after itself and leaves 'ghosts' of previous versions in Joomla Extensions.
Deleting these ghosts also deleted the files for the current version - Whoops!
All fixed by reinstalling the current one.

Thanks again.
The administrator has disabled public write access.
 
Go to topPage: 1