• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

Subdomain wildcards experimentation

ImagesGuru

Chevereto Member
🎯Description of the issue

I have a white page, using subdomain wildcards.

For exemple : https://es.images.guru

▶🚶‍Reproduction steps
  1. I have created a .es subdomain in my cpanel account
  2. I have activated ssl certificate for this .es subdomain
  3. I have edited the .htaccess file :
# Disable server signature
ServerSignature Off

<ifModule mod_headers.c>
Header set Access-Control-Allow-Origin: *
</ifModule>

# Enable CORS across all your subdomains (replace dev\.local with your domain\.com)
SetEnvIf Origin ^(https?://.+\.images\.guru(?::\d{1,5})?)$ CORS_ALLOW_ORIGIN=$1
Header append Access-Control-Allow-Origin %{CORS_ALLOW_ORIGIN}e env=CORS_ALLOW_ORIGIN

Header merge Vary "Origin"


😢Unexpected result

White page !

Thanks for help :)
 
Sorry, but how setting up your CNAME is something relevant to the system itself?

Moved to Server issues.
 
Got the logs :

G_ROOT_URL in /home/jmartinez/images.guru/app/loader.php on line 127
[11-Nov-2018 18:44:50 UTC] PHP Warning: constant(): Couldn't find constant G_ROOT_LIB_URL in /home/jmartinez/images.guru/app/loader.php on line 127
[11-Nov-2018 18:44:50 UTC] PHP Warning: constant(): Couldn't find constant G_APP_LIB_URL in /home/jmartinez/images.guru/app/loader.php on line 127
[11-Nov-2018 18:44:50 UTC] PHP Warning: Use of undefined constant CHV_APP_PATH_CONTENT_LANGUAGES - assumed 'CHV_APP_PATH_CONTENT_LANGUAGES' (this will throw an Error in a future version of PHP) in /home/jmartinez/images.guru/app/lib/classes/class.l10n.php on line 44
[11-Nov-2018 18:44:50 UTC] PHP Fatal error: Uncaught UnexpectedValueException: DirectoryIterator::__construct(CHV_APP_PATH_CONTENT_LANGUAGES): failed to open dir: No such file or directory in /home/jmartinez/images.guru/app/lib/classes/class.l10n.php:44
Stack trace:
#0 /home/jmartinez/images.guru/app/lib/classes/class.l10n.php(44): DirectoryIterator->__construct('CHV_APP_PATH_CO...')
#1 /home/jmartinez/images.guru/app/lib/classes/class.l10n.php(259): CHV\L10n::bindEnabled()
#2 /home/jmartinez/images.guru/app/lib/functions.php(372): CHV\L10n::getEnabledLanguages()
#3 /home/jmartinez/images.guru/app/loader.php(129): CHV\get_enabled_languages()
#4 /home/jmartinez/images.guru/index.php(20): include_once('/home/jmartinez...')
#5 {main}

thrown in /home/jmartinez/images.guru/app/lib/classes/class.l10n.php on line 44

Thanks for help.
 
i see your problem. When i removed # infront of cors lines it also gave me 500 internal server error. Do not remove # infron't keep it as it is and it will work.

it should look like this

Code:
# Disable server signature
ServerSignature Off

<ifModule mod_headers.c>
Header set Access-Control-Allow-Origin: *
</ifModule>

# Enable CORS across all your subdomains (replace dev\.local with your domain\.com)
# SetEnvIf Origin ^(https?://.+\.images\.guru(?::\d{1,5})?)$ CORS_ALLOW_ORIGIN=$1
# Header append Access-Control-Allow-Origin %{CORS_ALLOW_ORIGIN}e env=CORS_ALLOW_ORIGIN
# Header merge Vary "Origin"

And not this

Code:
# Disable server signature
ServerSignature Off

<ifModule mod_headers.c>
Header set Access-Control-Allow-Origin: *
</ifModule>

# Enable CORS across all your subdomains (replace dev\.local with your domain\.com)
SetEnvIf Origin ^(https?://.+\.images\.guru(?::\d{1,5})?)$ CORS_ALLOW_ORIGIN=$1
Header append Access-Control-Allow-Origin %{CORS_ALLOW_ORIGIN}e env=CORS_ALLOW_ORIGIN
Header merge Vary "Origin"
 
o2switch, a French leader in hosting.

How do you have set the subdomain wildcard ?

Logs for me :
[11-Nov-2018 19:03:22 UTC] PHP Warning: constant(): Couldn't find constant G_ROOT_URL in /home/jmartinez/images.guru/app/loader.php on line 127
[11-Nov-2018 19:03:22 UTC] PHP Warning: constant(): Couldn't find constant G_ROOT_LIB_URL in /home/jmartinez/images.guru/app/loader.php on line 127
[11-Nov-2018 19:03:22 UTC] PHP Warning: constant(): Couldn't find constant G_APP_LIB_URL in /home/jmartinez/images.guru/app/loader.php on line 127
[11-Nov-2018 19:03:22 UTC] PHP Warning: Use of undefined constant CHV_APP_PATH_CONTENT_LANGUAGES - assumed 'CHV_APP_PATH_CONTENT_LANGUAGES' (this will throw an Error in a future version of PHP) in /home/jmartinez/images.guru/app/lib/classes/class.l10n.php on line 44
[11-Nov-2018 19:03:22 UTC] PHP Fatal error: Uncaught UnexpectedValueException: DirectoryIterator::__construct(CHV_APP_PATH_CONTENT_LANGUAGES): failed to open dir: No such file or directory in /home/jmartinez/images.guru/app/lib/classes/class.l10n.php:44
Stack trace:
#0 /home/jmartinez/images.guru/app/lib/classes/class.l10n.php(44): DirectoryIterator->__construct('CHV_APP_PATH_CO...')
#1 /home/jmartinez/images.guru/app/lib/classes/class.l10n.php(259): CHV\L10n::bindEnabled()
#2 /home/jmartinez/images.guru/app/lib/functions.php(372): CHV\L10n::getEnabledLanguages()
#3 /home/jmartinez/images.guru/app/loader.php(129): CHV\get_enabled_languages()
#4 /home/jmartinez/images.guru/index.php(20): include_once('/home/jmartinez...')
#5 {main}

thrown in /home/jmartinez/images.guru/app/lib/classes/class.l10n.php on line 44
 
@tomsit Yes Lets Encrymt now génèrate wildcard SSL certificate.
@JakeSully Have you created the cname record in cpanel or directly through your registrar ?
When you point the domain to a nameserver then it must be created in cPanel and not domain registrar because DNS records at domain registrar is only valid if you point the domain to their name servers.
 
Yes I know :)
But you, what are you using ?

I have created subdomain in cpanel "*.images.guru" that point to "images.guru", then I have modified dns A entry to cname.
 
@Rodolfo some idea ? Not working with cname or A record.

My log :
[12-Nov-2018 16:25:31 UTC] PHP Warning: constant(): Couldn't find constant G_ROOT_URL in /home/jmartinez/images.guru/app/loader.php on line 127
[12-Nov-2018 16:25:31 UTC] PHP Warning: constant(): Couldn't find constant G_ROOT_LIB_URL in /home/jmartinez/images.guru/app/loader.php on line 127
[12-Nov-2018 16:25:31 UTC] PHP Warning: constant(): Couldn't find constant G_APP_LIB_URL in /home/jmartinez/images.guru/app/loader.php on line 127
[12-Nov-2018 16:25:31 UTC] PHP Warning: Use of undefined constant CHV_APP_PATH_CONTENT_LANGUAGES - assumed 'CHV_APP_PATH_CONTENT_LANGUAGES' (this will throw an Error in a future version of PHP) in /home/jmartinez/images.guru/app/lib/classes/class.l10n.php on line 44
[12-Nov-2018 16:25:31 UTC] PHP Fatal error: Uncaught UnexpectedValueException: DirectoryIterator::__construct(CHV_APP_PATH_CONTENT_LANGUAGES): failed to open dir: No such file or directory in /home/jmartinez/images.guru/app/lib/classes/class.l10n.php:44
Stack trace:
#0 /home/jmartinez/images.guru/app/lib/classes/class.l10n.php(44): DirectoryIterator->__construct('CHV_APP_PATH_CO...')
#1 /home/jmartinez/images.guru/app/lib/classes/class.l10n.php(259): CHV\L10n::bindEnabled()
#2 /home/jmartinez/images.guru/app/lib/functions.php(372): CHV\L10n::getEnabledLanguages()
#3 /home/jmartinez/images.guru/app/loader.php(129): CHV\get_enabled_languages()
#4 /home/jmartinez/images.guru/index.php(20): include_once('/home/jmartinez...')
#5 {main}
thrown in /home/jmartinez/images.guru/app/lib/classes/class.l10n.php on line 44


My host said that this error is a programming error :
[12-Nov-2018 16:25:31 UTC] PHP Fatal error: Uncaught UnexpectedValueException: DirectoryIterator::__construct(CHV_APP_PATH_CONTENT_LANGUAGES): failed to open dir: No such file or directory in /home/jmartinez/images.guru/app/lib/classes/class.l10n.php:44
 

Attachments

  • arecord.png
    arecord.png
    12.2 KB · Views: 17
  • cnamerecord.png
    cnamerecord.png
    12.3 KB · Views: 19
  • subdomain.png
    subdomain.png
    66.4 KB · Views: 17
No you aren't supposto create a subdomain. Remove it and then go into DNS editor and only add a CNAME record. This explains why your wildcards aren't working.
 
Well. I haven't edite anything, I come from free version, I buy a licence, then update through admin panel.
I will try a fresh installation.
 
Back
Top