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.

Type: Pre-Sale
Status: In Progress
captshaw
View Replies:
captshaw replied on at Permalink Reply
captshaw
It should read, the add on just used the the bg_login.png or maybe Concrete5 just defaulted to that because the add on is not working.

Sorry about the type O above
MrKDilkington replied on at Permalink Reply
MrKDilkington
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.
captshaw replied on at Permalink Reply
captshaw
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.
gordoncWG replied on at Permalink Reply
gordoncWG
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?
MrKDilkington replied on at Permalink Reply
MrKDilkington
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
gordoncWG replied on at Permalink Reply
gordoncWG
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

<?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',


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

<?php
return array(
    'white_label' => array(
        'background_url' => 'image_url,
    ),
    'urls' => array(
        'background_url' => 'image_url',
    )
);


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?
MrKDilkington replied on at Permalink Reply
MrKDilkington
@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.
<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>
gordoncWG replied on at Permalink Reply
gordoncWG
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
headland replied on at Permalink Reply
headland
Hello,

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,
    ],
);
PhilYoung replied on at Permalink Reply
PhilYoung
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
Config::save('concrete.white_label.background_url', $background_image_url);

seems to work fine now
typhoon replied on at Permalink Reply
typhoon
Same problem in 8.4.3. Selected image is rendered as ://site.domain/1 , which gives a 404 not found.
shasha1 replied on at Permalink Reply 1 Attachment
shasha1
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.
MrKDilkington replied on at Permalink Reply
MrKDilkington
@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
'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.
edsaxmoore replied on at Permalink Reply
edsaxmoore
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!
MrKDilkington replied on at Permalink Reply
MrKDilkington
@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.
'urls' => [
    'background_url' => '...',
],

What is the value of "background_url"?
edsaxmoore replied on at Permalink Reply
edsaxmoore
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?
MrKDilkington replied on at Permalink Reply
MrKDilkington
@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 replied on at Permalink Reply
shasha1
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
shasha1 replied on at Permalink Reply
shasha1
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

concrete5 Environment Information

# concrete5 Version
Core Version - 8.2.1
Version Installed - 8.2.1
Database Version - 20170802000000

# concrete5 Packages
Peak (2.5.5)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
litespeed

# PHP Version
7.1.8

# PHP Extensions
bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, ldap, libxml, litespeed, mbstring, mcrypt, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, SourceGuardian, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 2M
ldap.max_links - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.3; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.