Creating area without image causes error when trying to edit

Permalink Browser Info Environment
if you add an area and do NOT add an image, when you try to go back and edit that same parallax area, it throws an error
Call to a member function getApprovedVersion() on null
.

BTW, I discovered this while testing after I had the addon causing errors I posted about here (by mistake I posted for the wrong version, but since the issue is fixed, oh well).https://www.concrete5.org/marketplace/addons/parallax-area/support/i... So go ahead and close that one.

Type: Discussion
Status: In Progress
OKDnet
View Replies:
OKDnet replied on at Permalink Reply
OKDnet
The reason I tried creating an area without an image leads me to some ideas that could make this add-on much more flexible.

I created 2 different parallax areas. The 1st I included an image. The 2nd one did not include an image, but I set a background color. (I wish I could set an opacity for the color, and a specific Height for the block area.).
Here is why...

Then, I set this custom class of the first one on an AREA DESIGN (rather than on a BLOCKS CUSTOM DESIGN).
Then, I added a Block to this area, and TRIED to use the 2nd custom class (the one with no image and only a background color).

Well it works as expected, but not ideal. The Parallax Image works on the area, and the color background displays above it, just like I wanted. But I can';t really use it because the color is solid and needs some opacity, and it's too big (which is why setting the height would be needed).

Any chance of implementing this?
shahroq replied on at Permalink Reply
shahroq
Hi Owen,
1 - I Added an option for opacity. (Ver 2.2.1)
2- About the height, you can add padding top/bottom to increase the height of area.
Cheers,
OKDnet replied on at Permalink Reply
OKDnet
Hi Shahroq,

Thanks! I haven't tried this yet, but about the height, I actually wanted to DECREASE the height that it defaulted to when I first tried this. So I don;t know if your suggestion of adding padding will work. What do you think? Maybe negative padding? Or is there a default padding that will be over-ridden by specifying it?
shahroq replied on at Permalink Reply
shahroq
Hi,
So decrease the the default padding which is 120px for both top & bottom.

concrete5 Environment Information

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

# concrete5 Packages
Block Designer (2.6.1), Block Designer Pro (2.6.2), Buttons Factory Pro (2.0.5), Centry (2.0.11), Code Helper (0.9.1), CSS Block Animation Components (0.9.1), EZ Paypal Advanced (1.0.2), Formify (2.4), Mainio Sync (1.0.0), Parallax Area (2.1.1), Quick Content (1.0.13), Spacer (0.9.3)

# concrete5 Overrides
None

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

# Server Software
Apache

# Server API
apache2handler

# PHP Version
7.0.24

# PHP Extensions
apache2handler, bcmath, calendar, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, geoip, gettext, hash, iconv, imap, intl, json, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tokenizer, wddx, xml, xmlreader, 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 - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 20M
sql.safe_mode - Off
upload_max_filesize - 20M
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Hide Post Content

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

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.