-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only download via curl if the url is valid
- Loading branch information
1 parent
1abfbf7
commit f1f19c0
Showing
1 changed file
with
63 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f1f19c0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thelfensdrfer this merge request gives an error with enabled curl - 7.61.0 in server with php 7.2
[2018-10-04 08:24:16] auto-update.NOTICE: Checking for a new update... [] []
[2018-10-04 08:24:16] auto-update.DEBUG: Get new updates from http://192.168.1.80/1.1/update.json [] []
f1f19c0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ptdesign What is the error?
f1f19c0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thelfensdrfer well, no (error) seems doesn´t find any update. If i revert this commit it works.
This is the log:
[2018-10-04 08:24:16] auto-update.NOTICE: Checking for a new update... [] []
[2018-10-04 08:24:16] auto-update.DEBUG: Get new updates from http://192.168.1.80/1.1/update.json [] []
f1f19c0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you try again with version 0.12? It should not be fixed but it's strange that you don't get any further log messages or errors. I added a few exceptions as suggested in issue #42, maybe this will show something.
f1f19c0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thelfensdrfer ok, so now i get the error:
Warning: curl_error() expects parameter 1 to be resource, null given in /home/mysite/public_html/site/lib/src/AutoUpdate.php on line 582
Fatal error: Uncaught VisualAppeal\Exceptions\DownloadException: https://192.168.1.81/migration/1.1/update.json in /home/mysite/public_html/site/lib/src/AutoUpdate.php:459 Stack trace: #0 /home/mysite/public_html/site/update/update.php(17): VisualAppeal\AutoUpdate->checkUpdate() #1 {main} thrown in /home/mysite/public_html/site/lib/src/AutoUpdate.php on line 459
and in log:
[2018-10-05 15:33:33] auto-update.DEBUG: Get new updates from https://192.168.1.81/migration/1.1/update.json [] []
[2018-10-05 15:33:33] auto-update.ERROR: Could not download update file "https://192.168.1.81/migration/1.1/update.json" via curl! [] []
f1f19c0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you try again with the newest version 0.12.1?