Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to install theme -- fails #246

Open
revdanielc opened this issue Dec 12, 2024 · 1 comment
Open

Trying to install theme -- fails #246

revdanielc opened this issue Dec 12, 2024 · 1 comment

Comments

@revdanielc
Copy link

I've trying to install the Agen theme via the Themes installer. But when I try, I get a page showing a 500 error followed by "Class ZipArchive" not found and code. Here is the code:

` static function install($extensionZipFile, $slug = false, $validate = false) {

	$extension   = static :: $extension;

	$success     = true;

	$extractTo   = static :: $baseDir;

	$fileCheck   = 'index.html';

	$folder 	    = false;



	$zip = new \ZipArchive();	 // <==



	if ($zip->open($extensionZipFile) === true) {

		$info       = false;

		$folderName = $zip->getNameIndex(0);



		//search for top level index.html`
@givanz
Copy link
Owner

givanz commented Dec 13, 2024

Your php is missing the zip extension, you can install it on your server using

sudo apt-get install php-zip

If you are using xampp you can use this guide https://stackoverflow.com/questions/23564138/how-to-enable-zip-dll-in-xampp

For shared hosting you can enable it from cpanel dashboard https://support.hostinger.com/en/articles/4667580-how-to-manage-php-extensions-on-cpanel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants