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

[4.x]: Backup failed because primary site name contained the ® (Registered trademark symbol) #14941

Open
CAIDcreative opened this issue May 6, 2024 · 1 comment

Comments

@CAIDcreative
Copy link

What happened?

Description

Backup failed because site name contained the ® (Registered trademark symbol)

Steps to reproduce

  1. Have a sitename that contain a symbol that when parsed puts brackets around that symbol ® -> (r) when the filename of the database backup is created

Expected behavior

  1. Backup is created without issue

Actual behavior

  1. Doesn't work and get a log "Could not create backup: The shell command "..." failed with exit code 1: sh: -c: line 0: syntax error near unexpected token `('

Was able to fix by simply changing site name but it only appears to break with latest version of craft 4 or something

Craft CMS version

Craft Pro 4.9.1

PHP version

8.2.18

Operating system and version

Linux 3.10.0-962.3.2.lve1.5.81.el7.x86_64

Database type and version

MariaDB 10.6.17

Image driver and version

GD 8.2.18

Installed plugins and versions

@brandonkelly
Copy link
Member

Craft’s backups use the System Name in Settings → General, not a site name.

I just tested the craft db/backup command when my System Name contains ® and (r), and both worked fine. What is your exact system name? And how are you creating the backup?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants