Major issue with my 5.7 install...

Permalink 1 user found helpful
Hi,
I'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

madesimplemedia
View Replies:
ong replied on at Permalink Reply
ong
Hi

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
madesimplemedia replied on at Permalink Reply
madesimplemedia
Thanks for the info.

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!
andrew replied on at Permalink Reply
andrew
There is a ticket with more downvotes than upvotes.

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..
edbeeny replied on at Permalink Reply
edbeeny
Andrew,

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.
andrew replied on at Permalink Reply
andrew
Yes, that makes sense. I'm wondering if the culprit is PHP 5.3. We will try and get a vagrant instance running that version to re-test against.
edbeeny replied on at Permalink Reply
edbeeny
Thanks Andrew for the update.
madesimplemedia replied on at Permalink Reply
madesimplemedia
Can't be, I'm running PHP5.4.40.
andrew replied on at Permalink Reply
andrew
can you post your environment information?
madesimplemedia replied on at Permalink Reply
madesimplemedia
Here you go:

# 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
madesimplemedia replied on at Permalink Reply
madesimplemedia
Got a bit of info from the hosting company. They say to mention that the server is running PHP as a FastCGI process.

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.
edbeeny replied on at Permalink Reply
edbeeny
Hi Andrew

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.
madesimplemedia replied on at Permalink Reply
madesimplemedia
Can you attach your themes.php so I can try please?
edbeeny replied on at Permalink Reply
edbeeny
What I did,

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();
   }
madesimplemedia replied on at Permalink Reply
madesimplemedia
Many thanks, works fine for me as a workaround. :)
edbeeny replied on at Permalink Reply
edbeeny
:)
andrew replied on at Permalink Reply
andrew
Agreed. This would also make sense with other users reporting trouble logging out, sonce the token appears in the url there.

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.
ong replied on at Permalink Reply
ong
Hi Andrew.

Might it be the length of the token?

I notice, in Firefox I see a colon (: character), in Chrome just %3A instead.

Olaf
ong replied on at Permalink Reply
ong
Hi

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
ong replied on at Permalink Reply
ong
Hi Andrew,

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
MrKDilkington replied on at Permalink Reply
MrKDilkington
@madesimplemedia

Have you tried activating or removing a theme in another browser?
madesimplemedia replied on at Permalink Reply
madesimplemedia
Yes I tried Chrome too, gives a similar message about a redirect loop.
MrKDilkington replied on at Permalink Reply
MrKDilkington
I am running 5.7.4.1 and was able to activate without errors.

Are you trying to remove or activate a custom theme?
madesimplemedia replied on at Permalink Reply
madesimplemedia
Both.

I'm thinking it's a hosting issue, but I don't know what would cause it?
ong replied on at Permalink Reply
ong
Hi

I can confirm this: Custom theme AND "official" ELEMENTAL theme have the same effect!

Olaf
edbeeny replied on at Permalink Reply
edbeeny
I have spent many hours looking into this. I think it's the way 5.7.4.1 handles redirection which is causing a few issues with some server configurations.
ong replied on at Permalink Reply
ong
Hi Ed,

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
edbeeny replied on at Permalink Reply
edbeeny
Try 5.7.3, there was some big changes in 5.7.4. I see less bugs in 5.7.3
madesimplemedia replied on at Permalink Reply
madesimplemedia
Still has a lot of bugs, I was hoping this new version would be better. I did manage to run 5.7.3 ok though.
madesimplemedia replied on at Permalink Reply
madesimplemedia
I've asked my hosting company to see what they reckon, they are normally very helpful.
daenu replied on at Permalink Reply
daenu
I'm using 5.7.4 and must say that it's working like a charm.

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
edbeeny replied on at Permalink Reply
edbeeny
The servers I am using are above recommendation. It has to be down to server configuration.
getsupport replied on at Permalink Reply
getsupport
<plop>
iLP replied on at Permalink Reply
iLP
are you using rewrites in .htaccess for your subdomain? if so, check out https://www.concrete5.org/community/forums/5-7-discussion/5.7.4-inva...
getsupport replied on at Permalink Reply
getsupport
Client site error?
edbeeny replied on at Permalink Reply
edbeeny
ong replied on at Permalink Reply
ong
Hi Ed

THANK you. It seems to work.

Olaf
madesimplemedia replied on at Permalink Reply
madesimplemedia
Many thanks and thanks to Andrew too.