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
View Replies:
captshaw replied on at Permalink Reply
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
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
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
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 here 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 here 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
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
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

 * -----------------------------------------------------------------------------
 * Generated 2017-10-15T15:33:03+01:00
 * @item      debug.display_errors
 * @group     concrete
 * @namespace null
 * -----------------------------------------------------------------------------
return [
    'site' => 'Site Name',
    'version_installed' => '8.2.1',


Did exist but I deleted it after I uninstalled the login page background package and it made no difference.

I also have the code

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

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 this

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="" 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;">
gordoncWG replied on at Permalink Reply
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
headland replied on at Permalink Reply

I had the same issue on few 8.2.1 systems, but only this code bring it to work for me:
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:
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
On to get this to work i changed line 40 in
the file \Package\LoginPageBackground\Controller\SinglePage\Dashboard\System\Basics\login_page_background.php

Config::save('concrete.white_label.background_url', $background_image_url);

seems to work fine now

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

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

# Server Software

# Server API

# PHP Version

# 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.