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.