Site name is a sub-domain potential bug

Permalink Browser Info Environment
Hi Jordan

I've been using this block for a long time now and I can't express how good I think it is. I am still surprised it has not been integrated into the core as it's truly an essential part of a C5 set up.

I have just encountered my first bug with it due to my slightly odd set up I am using.

I have an existing site dswcctv.co.uk on an old shared host.
I am building a new version of the site on a different shared host. I created an account on the new host called dswcctv.co.uk and while I am developing the new site pointed a sub-domain new.dswcctv.co.uk from the old host to the new host and added an alias on the new host as the main address still points to the old host.

This gave me a web address of new.dswcctv.co.uk to develop my new site but the hosts file structure is set-up with the main address which I hoped would make the transition smooth when it comes to it.

When I added a block using designer content however I encountered...

Warning: require_once(/var/sites/d/dswcctv.co.uk/public_html/concrete/blocks/bootstrap_row_threecol/controller.php) [function.require-once]: failed to open stream: No such file or directory in /var/sites/d/dswcctv.co.uk/public_html/concrete/core/libraries/loader.php on line 215
Fatal error: require_once() [function.require]: Failed opening required '/var/sites/d/dswcctv.co.uk/public_html/concrete/blocks/bootstrap_row_threecol/controller.php' (include_path='/var/sites/n/new.dswcctv.co.uk/public_html/libraries/3rdparty:/var/sites/d/dswcctv.co.uk/public_html/concrete/libraries/3rdparty:.:/usr/local/lib/php') in /var/sites/d/dswcctv.co.uk/public_html/concrete/core/libraries/loader.php on line 215


I am guessing that something somewhere is trying to write to the supposed folder structure of the alias whereas the real folder structure does not match that.

Luckily the block seems to have been created fine and works in deployment but I thought you might want to check what had happened here?

Thanks again for your hard work with this add-on.

Nathanael

EDIT: Added Environment Info for reference

# concrete5 Version
5.6.1b1
# concrete5 Packages
Designer Content (3.1.1).
# concrete5 Overrides
blocks/bootstrap_row_threecol, blocks/content, themes/dsw_boot_res
# Server Software
Apache
# Server API
cgi-fcgi
# PHP Version
5.3.10
# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, geoip, gettext, hash, iconv, imap, ionCube Loader, json, ldap, libxml, mbstring, mcrypt, memcache, mhash, mssql, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, Reflection, session, SimpleXML, soap, sockets, SPL, SQLite, sqlite3, standard, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib.
# PHP Settings

Type: Discussion
Status: New
digirunt
View Replies: View Best Answer
jordanlev replied on at Permalink Best Answer Reply
jordanlev
Hi Nathanael,
Thanks for the great feedback -- I'm glad Designer Content has been as useful to you as it has been to me!

As for the problem you ran into, are you referring to the point in time when you create the block via the Designer Content dashboard page? Or are you referring to a block that has already been created and now you're trying to add it to a page on your site?

I think you're referring to the dashboard page... and if so, the issue you're experiencing looks like a problem with the new "overrides cache" which was introduced in Concrete5.6. This has been the cause of countless issues (not just related to Designer Content, but lots of other areas as well), so it's always best to disable that during site development (via Dashboard > System & Settings > Cache & Speed Settings).

Hope that helps!

-Jordan
digirunt replied on at Permalink Reply
digirunt
Disabled cache and it solved the problem.

Thanks.

concrete5 Environment Information

Browser User-Agent String

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.