Post by KenHorse » Sat Feb 15, 2020 12:35 am

When trying to install an extension (the one that auto switches .tpl and .twig templates), I receive the following pop up. The upload progress bar stalls and, if I refresh, it does show the extension is installed but it isn't

Code: Select all

Internal Server Error
Internal Server Error
<!DOCTYPE html>
<html lang="en-gb" dir="ltr">
<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<title>Error: 0 Class &#039;ZipArchive&#039; not found</title>
							<link href="/administrator/templates/isis/css/template.css" rel="stylesheet" />
	<link href="/administrator/templates/isis/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
							<script src="/media/jui/js/jquery.js"></script>
	<script src="/media/jui/js/jquery-noconflict.js"></script>
	<script src="/media/jui/js/bootstrap.js"></script>
	<script src="/administrator/templates/isis/js/template.js"></script>
	<!--[if lt IE 9]><script src="/media/jui/js/html5.js"></script><![endif]-->
</head>
<body class="admin com_opencart view- layout- task-" data-spy="scroll" data-target=".subhead" data-offset="87">
	<!-- Top Navigation -->
	<nav class="navbar navbar-inverse navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container-fluid">
									<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
						<span class="element-invisible">Toggle Navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</a>
								<a class="admin-logo" href="/administrator"><span class="icon-joomla"></span></a>

				<a class="brand hidden-desktop hidden-tablet" href="http://192.168.1.61/" title="Preview Arcom Controllers. Your Source For The Best" target="_blank">Arcom Controll...					<span class="icon-out-2 small"></span></a>

								<div class="nav-collapse">
																																					<ul id="menu" class="nav ">
<li class="dropdown"><a class="dropdown-toggle"  data-toggle="dropdown" href="#" >System <span class="caret"></span></a><ul class="dropdown-menu scroll-menu">
<li><a class="no-dropdown menu-cpanel"  href="index.php" >Control Panel</a></li>
<li class="divider"><span></span></li>
<li><a class="no-dropdown menu-config"  href="index.php?option=com_config" >Global Configuration</a></li>
<li class="divider"><span></span></li>
<li><a class="no-dropdown menu-checkin"  href="index.php?option=com_checkin" >Global Check-in</a></li>
<li><a class="no-dropdown menu-clear"  href="index.php?option=com_cache" >Clear Cache</a></li>
<li><a class="no-dropdown menu-purge"  href="index.php?option=com_cache&amp;view=purge" >Clear Expired Cache</a></li>
<li class="divider"><span></span></li>
<li><a class="no-dropdown menu-info"  href="index.php?option=com_admin&amp;view=sysinfo" >System Information</a></li>
</ul>
</li>
<li class="dropdown"><a class="dropdown-toggle"  data-toggle="dropdown" href="#" >Users <span class="caret"></span></a><ul class="dropdown-menu scroll-menu">
<li class="dropdown-submenu"><a class="dropdown-toggle menu-user"  data-toggle="dropdown" href="index.php?option=com_users&amp;view=users" >Manage</a><ul class="dropdown-menu menu-scrollable">
<li><a class="no-dropdown menu-newarticle"  href="index.php?option=com_users&amp;task=user.add" >Add New User</a></li>
</ul>
</li>
<li class="dropdown-submenu"><a class="dropdown-toggle menu-groups"  data-toggle="dropdown" href="index.php?option=com_users&amp;view=groups" >Groups</a><ul class="dropdown-menu menu-scrollable">
<li><a class="no-dropdown menu-newarticle"  href="index.php?option=com_users&amp;task=group.add" >Add New Group</a></li>
</ul>
</li>
<li class="dropdown-submenu"><a class="dropdown-toggle menu-levels"  data-toggle="dropdown" href="index.php?option=com_users&amp;view=levels" >Access Levels</a><ul class="dropdown-menu menu-scrollable">
<li><a class="no-dropdown menu-newarticle"  href="index.php?option=com_users&amp;task=level.add" >Add New Access Level</a></li>
</ul>
</li>
<li class="divider"><span></span></li>
<li><a class="no-dropdown menu-fields"  href="index.php?option=com_fields&amp;context=com_users.user" >Fields</a></li>
<li><a class="no-dropdown menu-category"  href="index.php?option=com_fields&amp;view=groups&amp;context=com_users.user" >Field Groups</a></li>
<li class="divider"><span></span></li>
<li class="dropdown-submenu"><a class="dropdown-toggle menu-user-note"  data-toggle="dropdown" href="index.php?option=com_users&amp;view=notes" >User Notes</a><ul class="dropdown-menu menu-scrollable">
<li><a class="no-dropdown menu-newarticle"  href="index.php?option=com_users&amp;task=note.add" >Add User Note</a></li>
</ul>
</li>
<li class="dropdown-submenu"><a class="dropdown-toggle menu-category"  data-toggle="dropdown" href="index.php?option=com_categories&amp;view=categories&amp;extension=com_users" >User Note Categories</a><ul class="dropdown-menu menu-scrollable">
<li><a class="no-dropdown menu-newarticle"  href="index.php?option=com_categories&amp;task=category.add&amp;extension=com_users" >Add New Category</a></li>
</ul>
</li>
<li class="divider"><span></span></li>
<li><a class="no-dropdown menu-privacy"  href="index.php?option=com_privacy" >Privacy</a></li>
<li><a class="no-dropdown menu-userlogs"  href="index.php?option=com_actionlogs" >User Actions Log</a></li>
<li class="divider"><span></span></li>
<li><a class="no-dropdown menu-massmail"  href="index.php?option=com_users&amp;view=mail" >Mass Mail Users</a></li>
</ul>
</li>
<li class="dropdown"><a class="dropdown-toggle"  data-toggle="dropdown" href="#" >Menus <span class="caret"></span></a><ul class="dropdown-menu scroll-menu">
<li class="dropdown-submenu"><a class="dropdown-toggle menu-menumgr"  data-toggle="dropdown" href="index.php?option=com_menus&amp;view=menus" >Manage</a><ul class="dropdown-menu menu-scrollable">
<li><a class="no-dropdown menu-newarticle"  href="index.php?option=com_menus&amp;view=menu&amp;layout=edit" >Add New Menu</a></li>
</ul>
</li>
<li class="divider"><span></span></li>
<li><a class="no-dropdown menu-allmenu"  href="index.php?option=com_menus&amp;view=items&amp;menutype=" >All Menu Items</a></li>
<li class="menuitem-group"><span>Site</span></li>
<li class="dropdown-submenu"><a class="dropdown-toggle menu-menu"  data-toggle="dropdown" href="index.php?option=com_menus&amp;view=items&amp;menutype=hidden-menu" >Hidden Menu </a><ul class="dropdown-menu menu-scrollable">
<li><a class="no-dropdown menu-menu"  href="index.php?option=com_menus&amp;view=item&amp;layout=edit&amp;menutype=hidden-menu" >Add New Menu Item</a></li>
</ul>
</li>
<li class="dropdown-submenu"><a class="dropdown-toggle menu-menu"  data-toggle="dropdown" href="index.php?option=com_menus&amp;view=items&amp;menutype=mainmenu" >Main Menu <span class="icon-home"></span></a><ul class="dropdown-menu menu-scrollable">
<li><a class="no-dropdown menu-menu"  href="index.php?option=com_menus&amp;view=item&amp;layout=edit&amp;menutype=mainmenu" >Add New Menu Item</a></li>
</ul>
</li>
</ul>
</li>
<li class="dropdown"><a class="dropdown-toggle"  data-toggle="dropdown" href="#" >Content <span class="caret"></span></a><ul class="dropdown-menu scroll-menu">
<li class="dropdown-submenu"><a class="dropdown-toggle menu-article"  data-toggle="dropdown" href="index.php?option=com_content" >Articles</a><ul class="dropdown-menu menu-scrollable">
<li><a class="no-dropdown menu-newarticle"  href="index.php?option=com_content&amp;task=article.add" >Add New Article</a></li>
</ul>
</li>
<li class="dropdown-submenu"><a class="dropdown-toggle menu-category"  data-toggle="dropdown" href="index.php?option=com_categories&amp;extension=com_content" >Categories</a><ul class="dropdown-menu menu-scrollable">
<li><a class="no-dropdown menu-newarticle"  href="index.php?option=com_categories&amp;task=category.add&amp;extension=com_content" >Add New Category</a></li>
</ul>
</li>
<li><a class="no-dropdown menu-featured"  href="index.php?option=com_content&amp;view=featured" >Featured Articles</a></li>
<li class="divider"><span></span></li>
<li><a class="no-dropdown menu-fields"  href="index.php?option=com_fields&amp;context=com_content.article" >Fields</a></li>
<li><a class="no-dropdown menu-category"  href="index.php?option=com_fields&amp;view=groups&amp;context=com_content.article" >Field Groups</a></li>
<li class="divider"><span></span></li>
<li><a class="no-dropdown menu-media"  href="index.php?option=com_media" >Media</a></li>
</ul>
</li>
<li class="dropdown"><a class="dropdown-toggle"  data-toggle="dropdown" href="#" >Components <span class="caret"></span></a><ul class="dropdown-menu scroll-menu">
<li><a class="no-dropdown menu-component"  href="index.php?option=com_akeeba" >Akeeba Backup</a></li>
<li class="dropdown-submenu"><a class="dropdown-toggle menu-banners"  data-toggle="dropdown" href="index.php?option=com_banners" >Banners</a><ul class="dropdown-menu menu-scrollable">
<li><a class="no-dropdown menu-banners"  href="index.php?option=com_banners" >Banners</a></li>
<li><a class="no-dropdown menu-banners-cat"  href="index.php?option=com_categories&amp;extension=com_banners" >Categories</a></li>
<li><a class="no-dropdown menu-banners-clients"  href="index.php?option=com_banners&amp;view=clients" >Clients</a></li>
<li><a class="no-dropdown menu-banners-tracks"  href="index.php?option=com_banners&amp;view=tracks" >Tracks</a></li>
</ul>
</li>
<li><a class="no-dropdown menu-bfsurveytrial-16"  href="index.php?option=com_bfsurveytrial" >BF Surveytrial</a></li>
<li class="dropdown-submenu"><a class="dropdown-toggle menu-contact"  data-toggle="dropdown" href="index.php?option=com_contact" >Contacts</a><ul class="dropdown-menu menu-scrollable">
<li><a class="no-dropdown menu-contact"  href="index.php?option=com_contact" >Contacts</a></li>
<li><a class="no-dropdown menu-contact-cat"  href="index.php?option=com_categories&amp;extension=com_contact" >Categories</a></li>
</ul>
</li>
<li class="dropdown-submenu"><a class="dropdown-toggle menu-project_16"  data-toggle="dropdown" href="index.php?option=com_creativecontactform" >Creative Contact Form</a><ul class="dropdown-menu menu-scrollable">
<li><a class="

New member

Posts

Joined
Fri Nov 23, 2012 1:39 am

Post by KenHorse » Sat Feb 15, 2020 1:05 am

Oh and the apache2 error log doesn't show anything

New member

Posts

Joined
Fri Nov 23, 2012 1:39 am

Post by straightlight » Sat Feb 15, 2020 1:10 am

Contact the extension developer to resolved this issue.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by KenHorse » Sat Feb 15, 2020 1:22 am

It happens with ANY extension I try to install

New member

Posts

Joined
Fri Nov 23, 2012 1:39 am

Post by thekrotek » Sat Feb 15, 2020 1:31 am

Can be literally anything. You can only figure this out by debugging the issue.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by OSWorX » Sat Feb 15, 2020 1:37 am

KenHorse wrote:
Sat Feb 15, 2020 12:35 am
When trying to install an extension ..
KenHorse wrote:
Sat Feb 15, 2020 12:35 am
It happens with ANY extension I try to install
Error: 0 Class &#039;ZipArchive&#039; not found
The error message says it all.
Could it be, that you have not installed/enabled the zip extension on your server?

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by KenHorse » Sat Feb 15, 2020 1:45 am

Nope, it's there

apt install php-zip
Reading package lists... Done
Building dependency tree
Reading state information... Done
php-zip is already the newest version (2:7.4+72+0~20200122.20+debian8~1.gbpcd96c7).

New member

Posts

Joined
Fri Nov 23, 2012 1:39 am

Post by OSWorX » Sat Feb 15, 2020 2:02 am

And what does your phpinfo() say?

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by KenHorse » Sat Feb 15, 2020 2:06 am

It's there


HTTP_ACCEPT_ENCODING gzip, deflate
Phar EXT version 2.0.2
Phar API version 1.1.1
SVN revision $Id: ba76a9b0e06d536a9b602c782e38e6826cb4ee02 $
Phar-based phar archives enabled
Tar-based phar archives enabled
ZIP-based phar archives enabled
gzip compression enabled
bzip2 compression disabled (install pecl/bz2)
Native OpenSSL support enabled

New member

Posts

Joined
Fri Nov 23, 2012 1:39 am

Post by OSWorX » Sat Feb 15, 2020 2:17 am

Enabled, not enabled ..
I asked for a simple phpinfo output, like:
Image

And which php-version are you using?

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by KenHorse » Sat Feb 15, 2020 2:24 am

Hmmm..no zip? All I have is a zlib listing:

And PHP version

root@debian:~# php -v
PHP 7.3.14-5+0~20200202.52+debian8~1.gbpa71879 (cli) (built: Feb 2 2020 09:43:48) ( NTS )

Attachments

Capture.JPG

Capture.JPG (53.52 KiB) Viewed 225 times


New member

Posts

Joined
Fri Nov 23, 2012 1:39 am

Post by KenHorse » Sat Feb 15, 2020 2:29 am

OK. so I installed zip

root@debian:~# apt install php7.3-zip

And it's now there:

root@debian:~# php -m
[PHP Modules]
bz2
calendar
Core
ctype
date
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
openssl
pcntl
pcre
PDO
Phar
posix
readline
Reflection
session
shmop
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

Still the same Internal Server Error

New member

Posts

Joined
Fri Nov 23, 2012 1:39 am

Post by KenHorse » Sat Feb 15, 2020 2:51 am

RESOLVED

Turned out I didn't have the proper PHP version loaded into apache

root@debian:~# a2dismod php7.2
root@debian:~# a2enmod php7.3
root@debian:~# service apache2 restart

All is good now. Extension installations included

Thanks for the prodding to get my head in gear about this

New member

Posts

Joined
Fri Nov 23, 2012 1:39 am

Post by OSWorX » Sat Feb 15, 2020 4:28 pm

KenHorse wrote:
Sat Feb 15, 2020 2:51 am
RESOLVED

Turned out I didn't have the proper PHP version loaded into apache

root@debian:~# a2dismod php7.2
root@debian:~# a2enmod php7.3
root@debian:~# service apache2 restart

All is good now. Extension installations included

Thanks for the prodding to get my head in gear about this
That is why I have asked for the output of the phpinfo() and the php-version!
Because when installed manual, it is important to use the correct php-version of the zip-library depending on the used php-version of the server.

Glad when I could help you.

Custom Development | Individuelle Entwicklung | Support & Bugfixes

Image Image Image


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by straightlight » Sat Feb 15, 2020 11:20 pm

I'll have to agree here. When applying apache changes, it's important to identify those changes in phpinfo(). I did experienced similar events with past clients where their so-called IT people takes care of those upgrades rather than clients contacting their hosting service for those who don't know how to manage their domains or servers. Which is why, managed hosting becomes an important package to consider for those who strictly focuses on values.

I'll add it to the FAQ.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Sat Feb 15, 2020 11:47 pm

Added in FAQ.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 18 guests