Does not work with Concrete5 8.2.1
Permalink Browser Info Environment
I just installed this add on and it does not function with ver 8.2.1, I just used the default bg_image.png in Concrete5.
I tired a few different images to make sure it was not them.
Just letting you know. I did use this with ver 7.X and it worked fine, have a nice day.
I tired a few different images to make sure it was not them.
Just letting you know. I did use this with ver 7.X and it worked fine, have a nice day.
Type: | Pre-Sale |
---|---|
Status: | In Progress |
Hi captshaw,
I just tested the add-on using version 8.2.1 of concrete5 and it displays a background image correctly on the login page.
Looking at your site, it looks like you have overwritten "bg_login.png" with a file of your own. Also, the background image you selected on the Login Page Background page appears to be "invalid", it shows up as "1" instead of a path to a file. I would try adding a different image and see what happens.
I just tested the add-on using version 8.2.1 of concrete5 and it displays a background image correctly on the login page.
Looking at your site, it looks like you have overwritten "bg_login.png" with a file of your own. Also, the background image you selected on the Login Page Background page appears to be "invalid", it shows up as "1" instead of a path to a file. I would try adding a different image and see what happens.
I only over wrote the bg_login.png file after I tried your add on.
I also tried 3 different images with your add on before I removed it.
Again this was done after I tried the add on.
I also tried 3 different images with your add on before I removed it.
Again this was done after I tried the add on.
Hi Karl
I can't get the package to work under 8.2.1 either but I don't think it's the package that's at fault.
I only installed it as my custom background image was set using your guide herehttps://documentation.concrete5.org/tutorials/how-to-set-a-custom-lo... but stopped working after upgrade to 8.2.1.
My upgrade path was an immediate upgrade from 8.1.0 to 8.2 to 8.2.1 however and so the issue may have been caused by 8.2. I say this as I see in the 8.2 release notes herehttps://documentation.concrete5.org/developers/background/version-hi... that there have been "Bug fixes with white labelling background URL (thanks SnefIT )".
I wonder if there's something up here?
I can't get the package to work under 8.2.1 either but I don't think it's the package that's at fault.
I only installed it as my custom background image was set using your guide herehttps://documentation.concrete5.org/tutorials/how-to-set-a-custom-lo... but stopped working after upgrade to 8.2.1.
My upgrade path was an immediate upgrade from 8.1.0 to 8.2 to 8.2.1 however and so the issue may have been caused by 8.2. I say this as I see in the 8.2 release notes herehttps://documentation.concrete5.org/developers/background/version-hi... that there have been "Bug fixes with white labelling background URL (thanks SnefIT )".
I wonder if there's something up here?
Hi gordoncWG,
I just tested both the tutorial and the add-on using concrete5 8.2.1 and cannot reproduce this issue.
This makes me think there are other factors involved here.
When you say the tutorial approach and add-on stopped working, can you include more specific details please. Do you have a link to a site where it is not working?
Also, what are the contents of these 2 files:
- application\config\generated_overrides\concrete.php
- application\config\generated_overrides\login_page_background.php
I just tested both the tutorial and the add-on using concrete5 8.2.1 and cannot reproduce this issue.
This makes me think there are other factors involved here.
When you say the tutorial approach and add-on stopped working, can you include more specific details please. Do you have a link to a site where it is not working?
Also, what are the contents of these 2 files:
- application\config\generated_overrides\concrete.php
- application\config\generated_overrides\login_page_background.php
Hi Karl
Thanks for coming back on this. The site doesn't allow guest viewing although I could give you a login if the below doesn't enlighten.
The contents (domain info etc removed) of application\config\generated_overrides\concrete.php is
application\config\generated_overrides\login_page_background.php
Did exist but I deleted it after I uninstalled the login page background package and it made no difference.
I also have the code
in application/config/concrete.php
I use the Handyman package and so I imagine it's generating much of the override code.
Anything that jumps out at you?
Thanks for coming back on this. The site doesn't allow guest viewing although I could give you a login if the below doesn't enlighten.
The contents (domain info etc removed) of application\config\generated_overrides\concrete.php is
<?php /** * ----------------------------------------------------------------------------- * Generated 2017-10-15T15:33:03+01:00 * * DO NOT EDIT THIS FILE DIRECTLY * * @item debug.display_errors * @group concrete * @namespace null * ----------------------------------------------------------------------------- */ return [ 'site' => 'Site Name', 'version_installed' => '8.2.1',
Viewing 15 lines of 132 lines. View entire code block.
application\config\generated_overrides\login_page_background.php
Did exist but I deleted it after I uninstalled the login page background package and it made no difference.
I also have the code
in application/config/concrete.php
I use the Handyman package and so I imagine it's generating much of the override code.
Anything that jumps out at you?
@gordoncWG
Am I correct that you have the config settings in both application/config/concrete.php and application\config\generated_overrides\concrete.php? If so, I would remove the settings from application\config\generated_overrides\concrete.php (making sure to preserve the valid array syntax).
In application/config/concrete.php, set the URL to something very obvious, like thishttps://i.imgur.com/YpXxpAa.jpg....
After adding the code and URL, you should see the following HTML before the closing body tag.
Am I correct that you have the config settings in both application/config/concrete.php and application\config\generated_overrides\concrete.php? If so, I would remove the settings from application\config\generated_overrides\concrete.php (making sure to preserve the valid array syntax).
In application/config/concrete.php, set the URL to something very obvious, like thishttps://i.imgur.com/YpXxpAa.jpg....
After adding the code and URL, you should see the following HTML before the closing body tag.
<div class="backstretch" style="left: 0px; top: 0px; overflow: hidden; margin: 0px; padding: 0px; height: 704px; width: 1264px; z-index: -999999; position: fixed;"> <img src="https://i.imgur.com/YpXxpAa.jpg" style="position: absolute; margin: 0px; padding: 0px; border: none; width: 1264px; height: 1685.33px; max-height: none; max-width: none; z-index: -999999; left: 0px; top: -490.667px;"> </div>
Hi Karl
Yes I had it in both files and your solution worked. Many thanks for your help.
I reinstalled your package to manage the login page background more easily and it works perfectly.
Thanks again
Gordon
Yes I had it in both files and your solution worked. Many thanks for your help.
I reinstalled your package to manage the login page background more easily and it works perfectly.
Thanks again
Gordon
Hello,
I had the same issue on few 8.2.1 systems, but only this code bring it to work for me:
... but the package produce originally:
I had the same issue on few 8.2.1 systems, but only this code bring it to work for me:
<?php return array( 'urls' => [ 'background_url' => '/application/files/8015/1066/2177/Pospapier_DVF_2017-EBH-9800.jpg', ], 'white_label' => [ 'background_url' => '/application/files/8015/1066/2177/Pospapier_DVF_2017-EBH-9800.jpg', ], );
... but the package produce originally:
<?php return array( 'urls' => [ 'background_url' => '/application/files/8015/1066/2177/Pospapier_DVF_2017-EBH-9800.jpg', ], 'white_label' => [ 'background_url' => true, ], );
On 5.8.3.2 to get this to work i changed line 40 in
the file \Package\LoginPageBackground\Controller\SinglePage\Dashboard\System\Basics\login_page_background.php
to
seems to work fine now
the file \Package\LoginPageBackground\Controller\SinglePage\Dashboard\System\Basics\login_page_background.php
to
Config::save('concrete.white_label.background_url', $background_image_url);
seems to work fine now
Same problem in 8.4.3. Selected image is rendered as ://site.domain/1 , which gives a 404 not found.
Ditto. I have the same issue. Fresh install of 8.4.3: I selected an image. All seemed fine, navigated to Welcome page: no image displaying and an error in Chrome. See screenshot attached.
@shasha1
@typhoon
Sorry for the late reply.
I tested the add-on using concrete5 version 8.4.3 and was unable to reproduce the issue. This leads me to think there are additional variables involved in this.
Are either of you using an external file system/file host?
When you select a background image and save it, 3 config entries are saved across 2 files.
The add-on code that saves the 3 config settings:
https://github.com/MrKarlDilkington/login_page_background/blob/maste...
The result of the save should produce 1 config entry in login_page_background.php (the file ID of the image) and 2 config entries in concrete.php (the relative path of the image).
application\config\generated_overrides\login_page_background.php
application\config\generated_overrides\concrete.php
Example: login_page_background.php config entry
Example: concrete.php config entries
Can you both reply with those config entries so that I can see what is being saved, please. This will help me troubleshoot what might be going on.
@typhoon
Sorry for the late reply.
I tested the add-on using concrete5 version 8.4.3 and was unable to reproduce the issue. This leads me to think there are additional variables involved in this.
Are either of you using an external file system/file host?
When you select a background image and save it, 3 config entries are saved across 2 files.
The add-on code that saves the 3 config settings:
https://github.com/MrKarlDilkington/login_page_background/blob/maste...
The result of the save should produce 1 config entry in login_page_background.php (the file ID of the image) and 2 config entries in concrete.php (the relative path of the image).
application\config\generated_overrides\login_page_background.php
application\config\generated_overrides\concrete.php
Example: login_page_background.php config entry
'background_image' => '17'
Example: concrete.php config entries
'urls' => [ 'background_url' => '/concrete5_8x_sandbox/application/files/3915/4058/5357/blue_frosting.png', ], 'white_label' => [ 'background_url' => '/concrete5_8x_sandbox/application/files/3915/4058/5357/blue_frosting.png', ]
Can you both reply with those config entries so that I can see what is being saved, please. This will help me troubleshoot what might be going on.
I am using concrete 8.4.3. White Label add-on and Login Page Background add-on. I can get it all to work, but here is what I must do once each are installed.
-Go to Login Page and add add graphic. Save.
-FTP to site, open /public_html/application/config/generated_overrides/concrete.php
-Find:
'white_label' => [
'logo' => 'https://chiropractor-fortmyers.services/application/files/4015/3218/8380/cms-skybox-suite.fw.png',
'name' => 'CMS Suite by Red Sneakers',
'background_url' =>true,
- Change to
'white_label' => [
'logo' => '/application/files/4015/3218/8380/cms-skybox-suite.fw.png',
'name' => 'CMS Suite by Red Sneakers',
'background_url' => '/application/files/1315/3218/8398/updside-down-sneakers.jpg',
I have been able to do this on every site and it works like a champ!
-Go to Login Page and add add graphic. Save.
-FTP to site, open /public_html/application/config/generated_overrides/concrete.php
-Find:
'white_label' => [
'logo' => 'https://chiropractor-fortmyers.services/application/files/4015/3218/8380/cms-skybox-suite.fw.png',
'name' => 'CMS Suite by Red Sneakers',
'background_url' =>true,
- Change to
'white_label' => [
'logo' => '/application/files/4015/3218/8380/cms-skybox-suite.fw.png',
'name' => 'CMS Suite by Red Sneakers',
'background_url' => '/application/files/1315/3218/8398/updside-down-sneakers.jpg',
I have been able to do this on every site and it works like a champ!
@edsaxmoore
Just to double check, are you using version 0.9.1 of the add-on? I ask because a "white_label background_url" of "true" seems like the behavior of an older version.
Here is the code for the previous behavior where the boolean true is set:
https://github.com/MrKarlDilkington/login_page_background/commit/0e6...
In concrete.php (application\config\generated_overrides\concrete.php), please find the following code.
What is the value of "background_url"?
Just to double check, are you using version 0.9.1 of the add-on? I ask because a "white_label background_url" of "true" seems like the behavior of an older version.
Here is the code for the previous behavior where the boolean true is set:
https://github.com/MrKarlDilkington/login_page_background/commit/0e6...
In concrete.php (application\config\generated_overrides\concrete.php), please find the following code.
'urls' => [ 'background_url' => '...', ],
What is the value of "background_url"?
The version that downloads is Login Page Background - 0.9.
'urls' => [
'background_url' => '/application/files/9915/4083/0430/updside-down-sneakers.jpg',
],
However, it only works when I change the following:
'white_label' => [
'logo' => '/application/files/8215/4083/0295/cms-skybox-suite.png',
'name' => 'CMS by Red Sneakers',
'background_url' => true,
],
to this.:
'white_label' => [
'logo' => '/application/files/8215/4083/0295/cms-skybox-suite.png',
'name' => 'CMS by Red Sneakers',
'background_url' => '/application/files/9915/4083/0430/updside-down-sneakers.jpg',
],
It appears to be an issue with the White Label add-on that is interfering with background. Perhaps I should contact the developer of the White Label add-on. Yes?
'urls' => [
'background_url' => '/application/files/9915/4083/0430/updside-down-sneakers.jpg',
],
However, it only works when I change the following:
'white_label' => [
'logo' => '/application/files/8215/4083/0295/cms-skybox-suite.png',
'name' => 'CMS by Red Sneakers',
'background_url' => true,
],
to this.:
'white_label' => [
'logo' => '/application/files/8215/4083/0295/cms-skybox-suite.png',
'name' => 'CMS by Red Sneakers',
'background_url' => '/application/files/9915/4083/0430/updside-down-sneakers.jpg',
],
It appears to be an issue with the White Label add-on that is interfering with background. Perhaps I should contact the developer of the White Label add-on. Yes?
@edsaxmoore
@shasha1
For some reason, the public marketplace add-on page was making version 0.9.1 available for download, but for downloads within the "Extend concrete5" section of the concrete5 dashboard 0.9 was delivered. In the marketplace add-on settings, I updated the add-on to deliver 0.9.1 for concrete5 versions 8.2.1 and over.
Please try updating the add-on and see if the problem still persists.
@edsaxmoore
I am not sure what settings the White Label add-on is setting.
@shasha1
For some reason, the public marketplace add-on page was making version 0.9.1 available for download, but for downloads within the "Extend concrete5" section of the concrete5 dashboard 0.9 was delivered. In the marketplace add-on settings, I updated the add-on to deliver 0.9.1 for concrete5 versions 8.2.1 and over.
Please try updating the add-on and see if the problem still persists.
@edsaxmoore
I am not sure what settings the White Label add-on is setting.
Great, thanks!
I've updated to 0.9.1. Initially, it did not work, but the old image may have been cached? I chose to manually clear the old image through the interface, then added it again and it works!
Thanks again @MrKDilkington
Paul
I've updated to 0.9.1. Initially, it did not work, but the old image may have been cached? I chose to manually clear the old image through the interface, then added it again and it works!
Thanks again @MrKDilkington
Paul
Hi MrKD,
Here are some answers to your questions:
login_page_background.php:
return [
'background_image' => '6',
];
concrete.php:
'urls' => [
'background_url' => '/pault/application/files/5515/3977/1088/woman-home-burundi.jpg',
],
'white_label' => [
'background_url' => true,
],
# concrete5 Version
Core Version - 8.4.3
Version Installed - 8.4.3
Database Version - 20180716000000
# concrete5 Packages
Block Designer (3.2.0), Login Page Background (0.9)
Login Page Background 0.9.1 is not showing as an update.
Also, I've installed C5 inside a sub-directory (/pault), thought I'd mention that if it is a paths issue.
Hope that helps!
Paul
Here are some answers to your questions:
login_page_background.php:
return [
'background_image' => '6',
];
concrete.php:
'urls' => [
'background_url' => '/pault/application/files/5515/3977/1088/woman-home-burundi.jpg',
],
'white_label' => [
'background_url' => true,
],
# concrete5 Version
Core Version - 8.4.3
Version Installed - 8.4.3
Database Version - 20180716000000
# concrete5 Packages
Block Designer (3.2.0), Login Page Background (0.9)
Login Page Background 0.9.1 is not showing as an update.
Also, I've installed C5 inside a sub-directory (/pault), thought I'd mention that if it is a paths issue.
Hope that helps!
Paul
Sorry about the type O above