mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-07-17 13:43:50 +03:00
v0.30.4: PHP Parse error during update #1950
Closed
opened 2026-02-05 02:17:21 +03:00 by OVERLORD
·
22 comments
No Branch/Tag Specified
development
l10n_development
release
snyk-action
ci_and_static
mfa_key
phpstan_june26
MilnerMart/development
GamerClassN7/impersonations-for-admin
Zhey-on/feature/csp-image-css-controls-6033
tortillas5/development
llm_only
vectors
McTom234/oidc-key-algorithms
captcha_example
v26.05.2
v26.05.1
v26.05
v26.03.5
v26.03.4
v26.03.3
v26.03.2
v26.03.1
v26.03
v25.12.9
v25.12.8
v25.12.7
v25.12.6
v25.12.5
v25.12.4
v25.12.3
v25.12.2
v25.12.1
v25.12
v25.11.6
v25.11.5
v25.11.4
v24.11.4
v25.11.3
v25.11.2
v25.11.1
v25.11
v25.07.3
v25.07.2
v25.07.1
v25.07
v25.05.2
v25.05.1
v25.05
v25.02.5
v25.02.4
v25.02.3
v25.02.2
v25.02.1
v25.02
v24.12.1
v24.12
v24.10.3
v24.10.2
v24.10.1
v24.10
v24.05.4
v24.05.3
v24.05.2
v24.05.1
v24.05
v24.02.3
v24.02.2
v24.02.1
v24.02
v23.12.3
v23.12.2
v23.12.1
v23.12
v23.10.4
v23.10.3
v23.10.2
v23.10.1
v23.10
v23.08.3
v23.08.2
v23.08.1
v23.08
v23.06.2
v23.06.1
v23.06
v23.05.2
v23.05.1
v23.05
v23.02.3
v23.02.2
v23.02.1
v23.02
v23.01.1
v23.01
v22.11.1
v22.11
v22.10.2
v22.10.1
v22.10
v22.09.1
v22.09
v22.07.3
v22.07.2
v22.07.1
v22.07
v22.06.2
v22.06.1
v22.06
v22.04.2
v22.04.1
v22.04
v22.03.1
v22.03
v22.02.3
v22.02.2
v22.02.1
v22.02
v21.12.5
v21.12.4
v21.12.3
v21.12.2
v21.12.1
v21.12
v21.11.3
v21.11.2
v21.11.1
v21.11
v21.10.3
v21.10.2
v21.10.1
v21.10
v21.08.6
v21.08.5
v21.08.4
v21.08.3
v21.08.2
v21.08.1
v21.08
v21.05.4
v21.05.3
v21.05.2
v21.05.1
v21.05
v21.04.6
v21.04.5
v21.04.4
v21.04.3
v21.04.2
v21.04.1
v21.04
v0.31.8
v0.31.7
v0.31.6
v0.31.5
v0.31.4
v0.31.3
v0.31.2
v0.31.1
v0.31.0
v0.30.7
v0.30.6
v0.30.5
v0.30.4
v0.30.3
v0.30.2
v0.30.1
v0.30.0
v0.29.3
v0.29.2
v0.29.1
v0.29.0
v0.28.3
v0.28.2
v0.28.1
v0.28.0
v0.27.5
v0.27.4
v0.27.3
v0.27.2
v0.27.1
v0.27
v0.26.4
v0.26.3
v0.26.2
v0.26.1
v0.26.0
v0.25.5
v0.25.4
v0.25.3
v0.25.2
v0.25.1
v0.25.0
v0.24.3
v0.24.2
v0.24.1
v0.24.0
v0.23.2
v0.23.1
v0.23.0
v0.22.0
v0.21.0
v0.20.3
v0.20.2
v0.20.1
v0.20.0
v0.19.0
v0.18.5
v0.18.4
v0.18.3
v0.18.2
v0.18.1
v0.18.0
v0.17.4
v0.17.3
v0.17.2
v0.17.1
v0.17.0
v0.16.3
v0.16.2
v0.16.1
v0.16.0
v0.15.3
v0.15.2
v0.15.1
v0.15.0
v0.14.3
v0.14.2
v0.14.1
v0.14.0
v0.13.1
v0.13.0
v0.12.2
v0.12.1
v0.12.0
v0.11.2
v0.11.1
v0.11.0
v0.10.0
v0.9.3
v0.9.2
v0.9.1
v0.9.0
v0.8.2
v0.8.1
v0.8.0
v0.7.6
v0.7.5
v0.7.4
v0.7.3
0.7.2
v.0.7.1
v0.7.0
v0.6.3
v0.6.2
v0.6.1
v0.6.0
v0.5.0
Labels
Clear labels
🎨 Design
📖 Docs Update
🐛 Bug
🐛 Bug
:cat2:🐈 Possible duplicate
💿 Database
☕ Open to discussion
💻 Front-End
🐕 Support
🚪 Authentication
🌍 Translations
🔌 API Task
🏭 Back-End
⛲ Upstream
🔨 Feature Request
🛠️ Enhancement
🛠️ Enhancement
🛠️ Enhancement
❤️ Happy feedback
🔒 Security
🔍 Pending Validation
💆 UX
📝 WYSIWYG Editor
🌔 Out of scope
🔩 API Request
:octocat: Admin/Meta
🖌️ View Customization
❓ Question
🚀 Priority
🛡️ Blocked
🚚 Export System
♿ A11y
🔧 Maintenance
> Markdown Editor
pull-request
Mirrored from GitHub Pull Request
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: starred/BookStack#1950
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tomasjay on GitHub (Nov 18, 2020).
Dear Dan,
I have tried to update to v0.30.4.
When running
composer install --no-devinstalling files works fine. But then there is a message saying:The next steps (
php artisan migrateetc.) do not work. They end with the same error message.Do you have an idea what my problem is? Unfortunately, I cannot tell you which was my old version of BookStack, probably v0.28. Running
php versionis already saying "v0.30.4".I have no idea on how to roll back, and BookStack (which is heavily used as our company's Wiki) is down. Your advice is appreciated.
Best,
Thomas
@ssddanbrown commented on GitHub (Nov 18, 2020):
Hi @tomasjay,
Could you confirm the operating system you're using (To host BookStack)?
Additionally it would be good to know what version of PHP you're using.
php versionis simply printing out the BookStack version file, You should be able to usephp -vto get the full php version info.@tomasjay commented on GitHub (Nov 18, 2020):
Hi Dan,
operating system is Ubuntu 16.04 LTS 64bit.
PHP version is
Ok, I see, PHP update to min version 7.2 required with BookStack v0.28 or higher.
Is it recommended to update the entire OS or is it enough to update PHP?
Best regards,
Thomas
@ssddanbrown commented on GitHub (Nov 19, 2020):
@tomasjay You can update just PHP to the latest stable version without needing to update the whole operating system.
The following commands, ran one at a time, should install php7.4:
Note, if you host other PHP applications on the same machine they may be effected by this upgrade.
@tomasjay commented on GitHub (Nov 19, 2020):
@ssddanbrown thank you. update to php version 7.4 done.
PHP 7.4.12 (cli) (built: Oct 31 2020 17:03:53) ( NTS )
an owncloud application on the same server works fine.
then i repeated the installation steps starting with
but it seems that the update is not complete.
git pullquits withAlready up-to-date.composer installsaysNothing to install or update(see line 6 below).Compiled views cleared!
However, I continued with php artisan migrate.
At the end I did
php artisan cache:clearand... view:clearas well as an apache restart.OwnCloud is still up, BookStack is not ...
Web inspector shows that nothing was loaded except for an (additional) external stylesheet.
Any idea?
@ssddanbrown commented on GitHub (Nov 19, 2020):
@tomasjay What do you see when you attempt to access BookStack? BookStack error page? A different error page?
@tomasjay commented on GitHub (Nov 19, 2020):
@ssddanbrown no, i see nothing except a white page. no error message.
i looked into the web inspector in safari, and nothing was loaded except for an (additional) external stylesheet. this is probably still there from the last load when bookstack was still up.
i started BookStack on firefox as well. and it delivers an empty page indeed.
the server's start page is fine as well as the owncloud application on the same server.
@ssddanbrown commented on GitHub (Nov 19, 2020):
@tomasjay Blank white pages can often be from permission issues.
You could try to change the required location to be owned by the server by running the below:
Navigate to your BookStack installation folder before running this.
@tomasjay commented on GitHub (Nov 19, 2020):
@ssddanbrown thank you for your help. i did this, but unfortunately nothing changed.
@ssddanbrown commented on GitHub (Nov 19, 2020):
@tomasjay Okay, Let's check the logs now to see what might be going wrong.
If you go to
/var/log/apache2/and list the files there withlsdo you see a file namederror.logor something BookStack specific likebookstack-error.log?@tomasjay commented on GitHub (Nov 19, 2020):
@ssddanbrown seems i can cd to /var/log. but i cannot switch to apache2.
permission denied.@ssddanbrown commented on GitHub (Nov 19, 2020):
@tomasjay Okay, might have to be root. You can peek inside with
sudo ls /var/log/apache2/.@tomasjay commented on GitHub (Nov 19, 2020):
@ssddanbrown ok, i see the content of the folder. but there are no BookStack specific files in it.
only several access.log, error.log and other_vhosts_access.log files.
@ssddanbrown commented on GitHub (Nov 19, 2020):
@tomasjay In that case, run:
You will go into a mode where you'd see the latest lines of this file, in addition to any updates made live.
with that running, Refresh the bookstack page and see if anything gets added/shows-up.
You can press
qorCtrl+Cto stop following that file for changes and return to the command line.@tomasjay commented on GitHub (Nov 19, 2020):
@ssddanbrown ok, here the last lines of error.log:
seems to be the same error as during installation (see above):
when reloading bookstack, a new line is added:
@ssddanbrown commented on GitHub (Nov 19, 2020):
@tomasjay Okay, It's possible that apache is still using the old php version. Could you run the following command and provide the output?:
@tomasjay commented on GitHub (Nov 19, 2020):
@ssddanbrown
SSLCertificateFile: file '/etc/letsencrypt/live/(server address)/fullchain.pem' does not exist or is empty
I'm looking into this atm.
it's a bit strange, because owncloud is running fine on https.
@ssddanbrown commented on GitHub (Nov 19, 2020):
@tomasjay Odd, Might not be a major error.
For changing the PHP versions, You can try running these commands and see if BookStack loads afterwards:
@tomasjay commented on GitHub (Nov 19, 2020):
@ssddanbrown that did the trick!!! wow, version 0.30 looks great!
thanks a lot. i'm very happy!
HOW CAN I THANK YOU?
@ssddanbrown commented on GitHub (Nov 19, 2020):
@tomasjay Awesome, I'm just glad you got it going. Again, Give owncloud a check over to make sure that's okay after changing php versions.
Just a warning for the future, If you had previously changed the upload limits you might be to do that again ("Changing Upload Limits > PHP" section):
https://www.bookstackapp.com/docs/admin/upload-config/#changing-upload-limits
The php7.4 install likely has it's own separate
php.inifile.@tomasjay commented on GitHub (Nov 19, 2020):
@ssddanbrown thanks for the hint regarding ownCloud.
seems to turn into a night shift
:-D
yes, i'll check the upload limits setting.
thank you once more!
@tomasjay commented on GitHub (Nov 19, 2020):
@ssddanbrown look here: https://companeer.com
;-)
@ssddanbrown commented on GitHub (Nov 19, 2020):
😆 Thanks