Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: TheMan177 on May 04, 2008, 10:21:13 AM

Title: Package Installation
Post by: TheMan177 on May 04, 2008, 10:21:13 AM
Okay, there's a few of these floating around, bit I think this is different...

I just updated to 2.0 Beta 3.1 from 3.0, all seemed to go fine. When attempting to install a package (I've tried more then one, all are up-to-date), the upload completes successfully, I try to apply the mod and I get this error:

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

These entries in the error log are also created:

Code: [Select]
2: Invalid argument supplied for foreach()

File: /home/account/public_html/forums/Themes/default/Packages.template.php (view_package sub template - eval?)
Line: 319

8: Undefined variable: js_operations

File: /home/account/public_html/forums/Themes/default/Packages.template.php (view_package sub template - eval?)
Line: 319
Title: Re: Package Installation
Post by: TheMan177 on May 05, 2008, 09:11:59 AM
Anyone?
Title: Re: Package Installation
Post by: Jade Elizabeth on May 11, 2008, 01:34:12 PM
If there are no mods installed? Can you do this for me please:

This is an eval error, the error might not even be in that file.

you'll have to disable template eval temporarily to get the real file and error line.

To do this, run this query in PHPmyAdmin (What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0))

Code: [Select]
INSERT INTO smf_settings VALUES ('disableTemplateEval', 1);
Once that's done, get the error again and copy it (the file and line may have changed), then run this query to re-enable it:

Code: [Select]
DELETE FROM smf_settings WHERE variable = 'disableTemplateEval';