Major issue with my 5.7 install...
Permalink 1 user found helpfulI've installed 5.7.4.1 on a sub domain: dev.[mysite].co.uk and when I click to activate or remove a theme I get the following error in Firefox and it doesn't work:
"The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
I've tried with and without pretty urls on. Could it be I need to define a base url somehow?
Thanks
Dave
Yeah I was hoping it was better by now, but clearly it is still failing on very basic things. I've only got 1.5 weeks to build this site for my client, so it's going to be based on 5.6 now!
Not saying that you're not experiencing a problem – but it's clearly not something that's as straightforward as what's being described here. It has to come down to server configuration or something specific about the site, which we haven't been able to reproduce. We're going to need someone who's experiencing the issue to actually get their hands dirty and figure out what's going on, or point us in a direction with real specific information about environment, browser, etc..
True.
I sent you a PM about this the other day with server configuration etc.. What else do you require?
I have been looking into this for a while and cannot figure out what is causing this. I agree it is down to server configuration.
# concrete5 Version
Core Version - 5.7.4.1
Version Installed - 5.7.4.1
Database Version - 20150504000000
# concrete5 Packages
Banner (1.0.0), MSM Responsive Image (1.0.0).
# concrete5 Overrides
languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/sl_SI/LC_MESSAGES/messages.mo, languages/sl_SI/LC_MESSAGES, languages/sl_SI, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, themes/humetheme/thumbnail.png, themes/humetheme/home.php, themes/humetheme/right_sidebar.php, themes/humetheme/css/site.css, themes/humetheme/css/site.css.map, themes/humetheme/css, themes/humetheme/images, themes/humetheme/scss/site.scss, themes/humetheme/scss, themes/humetheme/description.txt, themes/humetheme/Thumbs.db, themes/humetheme/elements/footer_bottom.php, themes/humetheme/elements/header_top.php, themes/humetheme/elements/header.php, themes/humetheme/elements/footer.php, themes/humetheme/elements, themes/humetheme/default.php, themes/humetheme/left_sidebar.php, themes/humetheme/view.php, themes/humetheme/js/site.js, themes/humetheme/js/modernizr.js, themes/humetheme/js/respond.min.js, themes/humetheme/js/jquery.cookie.min.js, themes/humetheme/js, themes/humetheme, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/sl_SI/LC_MESSAGES/messages.mo, languages/sl_SI/LC_MESSAGES, languages/sl_SI, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, themes/humetheme/thumbnail.png, themes/humetheme/home.php, themes/humetheme/right_sidebar.php, themes/humetheme/css/site.css, themes/humetheme/css/site.css.map, themes/humetheme/css, themes/humetheme/images, themes/humetheme/scss/site.scss, themes/humetheme/scss, themes/humetheme/description.txt, themes/humetheme/Thumbs.db, themes/humetheme/elements/footer_bottom.php, themes/humetheme/elements/header_top.php, themes/humetheme/elements/header.php, themes/humetheme/elements/footer.php, themes/humetheme/elements, themes/humetheme/default.php, themes/humetheme/left_sidebar.php, themes/humetheme/view.php, themes/humetheme/js/site.js, themes/humetheme/js/modernizr.js, themes/humetheme/js/respond.min.js, themes/humetheme/js/jquery.cookie.min.js, themes/humetheme/js, themes/humetheme
# 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
cgi-fcgi
# PHP Version
5.4.40
# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, filter, ftp, gd, gettext, gmp, hash, iconv, intl, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcntl, pcre, PDO, pdo_mysql, posix, readline, Reflection, session, shmop, SimpleXML, sockets, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib.
# PHP Settings
max_execution_time - 60
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 120
max_input_vars - 5000
memory_limit - 128M
post_max_size - 100M
sql.safe_mode - Off
upload_max_filesize - 100M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
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 - 1440
The loop is not being caused by Apache. It is being issued by the concrete5 app itself, but it is unclear why as there is no error_log or debugging information.
Ok I think it is down to the token.
The token is generating a %3A in the url which is causing an issue.
If I remove the token validation from activate_confirm function in the themes.php I can successfully install the theme.
edit themes.php in
/concrete/controllers/single_page/dashboard/pages
line 93
$this->set('activate_confirm', View::url('/dashboard/pages/themes', 'activate_confirm', $pThemeID, $valt->generate('activate')));
to
$this->set('activate_confirm', View::url('/dashboard/pages/themes', 'activate_confirm', $pThemeID, 'activate'));
then replace the activate_confirm function line 132
public function activate_confirm($pThemeID, $token) { $l = PageTheme::getByID($pThemeID); $val = Loader::helper('validation/error'); $valt = Loader::helper('validation/token'); if (!$valt->validate('activate', $token)) { $val->add($valt->getErrorMessage()); $this->set('error', $val); } else if (!is_object($l)) { $val->add('Invalid Theme'); $this->set('error', $val); } else { $l->applyToSite(); $this->redirect('/dashboard/pages/themes/inspect', $l->getThemeID(), 'activate'); } $this->view();
to
public function activate_confirm($pThemeID, $token) { $l = PageTheme::getByID($pThemeID); $l->applyToSite(); $this->redirect('/dashboard/pages/themes/inspect', $l->getThemeID(), 'activate'); $this->view(); }
This is almost certainly due to our new url library and something to do with url encoding generated by it not matching the servers output. Some server side setting. Just need to figure out why/what.
Might it be the length of the token?
I notice, in Firefox I see a colon (: character), in Chrome just %3A instead.
Olaf
I am using (values from phpinfo)
- PHP version 5.6.8
- Apache version: 20051115
- mysql client api version: mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $
If anything else is needed, please let me know.
Olaf
I also understand - and I will be doing my best to help solve this problem.
Let me know, what data you (may) need, and I will see, that I can get my hands on that.
Olaf
Have you tried activating or removing a theme in another browser?
Are you trying to remove or activate a custom theme?
I'm thinking it's a hosting issue, but I don't know what would cause it?
I can confirm this: Custom theme AND "official" ELEMENTAL theme have the same effect!
Olaf
thanks for sharing. I think 5.7 is still a major catastrophy. I am working on a new site and getting more problems than progress done. I am pretty sure it's 5.7.x.y because I am developing on the same server where several sites have been developed with 5.6 - with non of such problems.
I am not really fond of developing a completely new site with old software (version 5.6) but at this time ... I am actually thinking of going back to 5.6 - but on the other hand hoping that our bug reports help.
Olaf
The requirements noted here:http://www.concrete5.org/documentation/developers/5.7/installation/... must absolutely match though!
Had issues when using PHP 5.3.2.1 instead of 5.3.3 (or higher), same as for MySQL: I was using 5.0.10 instead of 5.1.5 (or higher)
So be sure that the required versions are installed and running.
BTW It doesn't mather if PHP is running as CGI or Apache modul
THANK you. It seems to work.
Olaf
same here (https://www.concrete5.org/index.php?cID=739279... ).
There is also a ticket opened already:http://www.concrete5.org/developers/bugs/5-7-4-1/activating-a-theme...
Please confirm there, that you have this bug as well (at the top of the posting).
Hope it's being fixed soon. Version 5.7.4.1 seems sooooo buggy to me that I am actually considering returnung to 5.6
Olaf