Bugtracker » EasyBackup » ZIP bug » View bug

Jump to 
Filters 
Search
Application EasyBackup Version 1.7
Description Easily e-mails your e107 MySQL database backup.
Note: Check if your bug report is not already an existing one to avoid duplicates.
Features, ideas and requests should go in the EasyBackup requests section.
Owner nlstart
#60 [Core] ZIP bug
Posted by Migs Tuesday 16 September 2008 - 06:22:46 Last updated by nlstart Monday 13 October 2008 - 00:30:07
Owner nlstart Priority Medium Found in version 1.2
Status Closed Resolution Implemented Fixed in version 1.5
Description
PHP 4.4.9
MySQL 5.0.51a
E107 0.7.12
Crosshatch Theme

When activating the menu, I get this error on trying to access any part of the site...

Parse error: syntax error, unexpected \')\', expecting \'(\' in [full path]/e107_plugins/easybackup/easybackup.php on line 154

According to PHPInfo, ZIP is enabled.
Related bugs
None.
Developer comments

16 Sep 2008: 06:34 (nlstart) Please try to install EasyBackup v1.4 first.

13 Oct 2008: 00:29 (nlstart) Should be fixed with EasyBackup v1.5

LAN_5

Migs
16 Sep 2008: 07:18
Reply to this
I get the exact same error, just on Line 158 instead of 154 (same syntax on the 2 lines).

The only difference is that I didn't even get to activating the menu. It failed on leaving the easybackup config page
nlstart
16 Sep 2008: 07:48
Reply to this
Line 158 of easybackup.php is:
if ($zip->open($filename, ZIPARCHIVE::CREATE)!==TRUE) {

There is no syntax error in this line.

This looks very similar like the error caused by an installer generated PHP.ini: see this PHP bug report 44349. Please contact your host.
nlstart
16 Sep 2008: 07:55
Reply to this
Another cause might be the file has been corrupted during upload. Unzip the files locally and try to use FileZilla to upload the files to your host.

If that also fails it might be caused by the old PHP version; try ask your host for possibilities to switch to PHP 5.

The easybackup_menu has become obsolete since version v1.3. So that's normal behavior.
Migs
17 Sep 2008: 04:14
Reply to this
Okay, my host said they will upgrade the PHP version "at some time".

I have downloaded, unzipped and FTP'd 3 times. I always use FileZilla anyway. Still no luck.

If attachment size isn't an issue, is there anyway I can comment out the ZIP section?
Migs
17 Sep 2008: 04:32
Reply to this
Well, I gave it one last go before I gave up, and it worked.

I have no idea what was wrong. I checked everything each time, including the CHMODs and all was correct.

Strange.

Now that it works, thanks for a plugin for a task I've been doing manually until now
nlstart
17 Sep 2008: 09:57
Reply to this
Strange indeed. I'm puzzled.
kroll
17 Sep 2008: 08:19
Reply to this
Hi nlstart

One question
I have this same problem with PHP 4.4.2 (line 158).
It is posible to make a EasyBackup compatible with older PHP versions?
nlstart
17 Sep 2008: 09:56
Reply to this
I doubt it... it has probably to do with the way I call the PHP zip enhancement functionality, in a way which is probably not supported by older versions.
What I'm curious about: if you switch off the zip mode in the EasyBackup settings, does it work properly or does it return the same error message?
nlstart
17 Sep 2008: 10:25
Reply to this
By the way; the oldest version I've ever used for e107 was 4.4.4 but that is really old. In the future e107 will only work on PHP version 5 (when version 0.8 will be launched). It is better to switch your host to PHP version 5 (some hosts support both PHP 4 and 5).
Migs
18 Sep 2008: 03:57
Reply to this
To answer this, I switched off ZIP first time round, but it made no difference. The only thing I can think of is that I somehow missed a CHMOD. I know the first time I installed the plugin that I did the CHMODs after installing, rather than before, which may have made a difference. I'm still not entirely sure what fixed it though. It can really only be server side, I think.
nlstart
20 Sep 2008: 01:34
Reply to this
Could you try to change line 158 of easybackup.php into:
if ($zip->open($filename, ZIPARCHIVE::CREATE())!==TRUE) {
akogo
24 Sep 2008: 07:59
Reply to this
I have changed line:
if ($zip->open($filename, ZIPARCHIVE::CREATE)!==TRUE) {

to

if ($zip->open($filename, ZIPARCHIVE::CREATE())!==TRUE) {

Now EasyBackup working perfectly with 4.4.2 PHP version.
Thanks for that.
nlstart
24 Sep 2008: 08:43
Reply to this
I can confirm that for PHP 5.2.6 the original line must remain in place in order to work properly.
nlstart
13 Oct 2008: 00:51
Reply to this
The parse errors (on PHP 4) should be fixed with EasyBackup v1.5
akogo
13 Oct 2008: 17:03
Reply to this
4.4.2 and every 5 php version plays correct. Thanks for your commitment .
caribou
05 Jan 2014: 11:46
Reply to this
Parse error: syntax error, unexpected 'goto' (T_GOTO) in /home/sapphir3/public_html/e107_plugins/easydbtool/index.php on line 415

any comments as to how to repair
nlstart
26 Jan 2014: 05:26
Reply to this
@caribou: See: http://e107.webstartinternet.com/plugins/bugtracker3/bugtracker3.php?2.102

You must be logged in to make comments on this site - please log in, or if you are not registered click here to signup