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

PHP Warning, PHP Parse error - v5.1.10 #178

Closed
r6b opened this Issue Mar 19, 2019 · 4 comments

Comments

Projects
None yet
2 participants
@r6b
Copy link

r6b commented Mar 19, 2019

Hi, running the latest version with the command 'php phpbu.phar' I get the following error message.

PHP Warning: Class 'Tightenco\Collect\Support\Arr' not found in phar:///home/[redacted]/phpbu.phar/lib/tightenco/Collect/Support/alias.php on line 16
PHP Parse error: syntax error, unexpected '=' in phar:///home/[redacted]/phpbu.phar/lib/tightenco/Collect/Support/Arr.php on line 388

@sebastianfeldmann sebastianfeldmann self-assigned this Mar 19, 2019

@sebastianfeldmann

This comment has been minimized.

Copy link
Owner

sebastianfeldmann commented Mar 19, 2019

Could you paste your configuration? So I can try to reproduce this.
Of course please remove all private path or credential information ;)

@r6b

This comment has been minimized.

Copy link
Author

r6b commented Mar 20, 2019

This is my configuration but I don't think this config matters since it can't even show the version via "phpbu --version" by erroring out before it gets to that point.

<?xml version="1.0" encoding="UTF-8"?>
<phpbu xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="http://schema.phpbu.de/5.1/phpbu.xsd">
  <backups>
    <backup name="MySQLDatabase">
    <cleanup type="quantity">
	<option name="amount" value="10" />   
    </cleanup>
      <source type="mysqldump">
        <option name="databases" value="[redacted]"/>
        <option name="user" value="[redacted]"/>
        <option name="password" value="[redacted]"/>
      </source>
      <target dirname="/var/www/html/backup"
              filename="mysql-%Y%m%d-%H%i.sql"
              compress="gzip"/>
    </backup>
    <backup name="ImgDirectory">
    <cleanup type="quantity">
 	<option name="amount" value="10" />
    </cleanup>
    <source type="tar">
      <option name="path" value="/var/www/html/img"/>
      <option name="exclude" value="index.php"/>
    </source>
      <target dirname="/var/www/html/backup"
              filename="img-%Y%m%d-%H%i"
              compress="gzip"/>
    </backup>
  </backups>
</phpbu>
@sebastianfeldmann

This comment has been minimized.

Copy link
Owner

sebastianfeldmann commented Mar 20, 2019

Thanks, will get right on it

@sebastianfeldmann

This comment has been minimized.

Copy link
Owner

sebastianfeldmann commented Mar 20, 2019

I think you are using PHP 7.0 and one of phpbus dependencies dependencies broke because it requires 7.1.

phpbu 7.0 => Dropbox SDK 7.0 => Collection lib 7.1 💥

I downgraded the dependency so phpbu will work with PHP 7.0 again.
You can try with the latest version 5.1.11.

Be aware that PHP 7.0 is not actively supported anymore, and even 7.1 is only getting security updates.
You can have a look at the supported versions here http://php.net/supported-versions.php

I keep the 7.0 support for semantic versioning reasons, but phpbu 6.0 will no longer support PHP 7.0 and php 7.1

sebastianfeldmann added a commit that referenced this issue Mar 20, 2019

@sebastianfeldmann sebastianfeldmann added this to the 5.2 milestone Apr 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.