Just checking if I can post

Permalink
I tried posting some replies in the Install-help forum and kept getting server 500 errors. So I thought I would try here with a new discussion.

 
admin replied on at Permalink Reply 1 Attachment
Wow - this is about the first thing that has worked for me on this site. Actually it sucks pretty badly.

1. I tried posting replies in the installation forum and kept getting Server 500 errors. I tried a number of times - I began to think there was something terribly wrong with the server, but no, as you can see I've managed to post here. Then again, there was no explanation or error message indicating why I wasn't able to send those earlier replies.

2. I came looking for a 'Page not found' error and found 1000s of posts with 100s of variations of the same problem, and a considerable number of "solutions" for various people. Simple things from reconfiguring a user, or a page, or connecting a page, through to making code changes and changing database structures. When I was at school if the page was not found you simply went looking for it, found the page and inserted it in the right place. The system has destroyed the use of the "Page not found" message and appears to have used it for every error that happens.

3. Those 'Page not found' errors started back in 2010. [Check my watch] It's not 3 years later and clearly it hasn't been fixed. Perhaps this project has been abandoned by the developers...

I'm not meaning to be negative but my experience here has not been good. And I've still got the same 'Page not found' problem, and I still have virtually no idea how to go about solving this.
adajad replied on at Permalink Reply
adajad
Actually, I can see all your replies in the other thread (starting here: http://www.concrete5.org/community/forums/installation/error-upgrad... but why you got a 500 is above me. I have been active here for more than two years and only seen 500 errors once. It can happen to anyone and be out of the hosts control.

Anyways... You say your client has tried to upgrade, downgrade, upgrade again and so on - without proper backups. I won't even go into the discussion about it since we all work differently, but that sounds like bad practice.

Can you trace the errors in the php logs? Have you tried reinstalling the 5.4.2.2 core and rerun the update script?

Here are some links that might help you:
http://www.concrete5.org/documentation/how-tos/developers/manually-...
http://www.concrete5.org/documentation/how-tos/developers/backup-a-...
http://www.concrete5.org/documentation/how-tos/editors/restore-a-de...

EDIT: As of your comment about abandoned project, it clearly shows you haven't bothered to check in now and again to keep yourself or your client site updated. The current stable version is 5.6.1.2 and 5.4.2.2 is about two years old (and 10 versions ago). If you want to (and you _really_ should) upgrade to the latest stable version I strongly recommend you read the release notes for each version which will tell you the prerequisites for each version. Some versions you can skip while others are essential (after the below, check the following versions release notes).
http://www.concrete5.org/documentation/how-tos/developers/update-ve...
admin replied on at Permalink Reply
Hi there

My account has been disabled... is that because I (accidentally) uploaded
too many files?

Sorry. I didn't know they were being uploaded - the spinner in the middle
of the screen stayed there for a number of minutes before I realised this
was taking too long, the image wasn't large. Then I checked Firebug and
found the Server 500 error message. I tried a few times before I gave up
and wondered whether starting a new conversation would work... voila!

Yes, the practice is very bad - I would never do that and neither would I
suggest my customers start this without a backup.

I did get a couple of errors in the PHP logs - here's some samples:
[Tue Apr 09 14:23:14 2013] [error] [client 122.148.247.237] PHP Fatal
error: Call to a member function getCollectionID() on a non-object in
/home/capt/build/home/concrete/blocks/autonav/controller.php on line 256,
referer:http://test.cabinetsonline.com.au/home/index.php/dashboard/home/...
[Tue Apr 09 14:23:21 2013] [error] [client 122.148.247.237] PHP Fatal
error: Call to a member function getCollectionID() on a non-object in
/home/capt/build/home/concrete/blocks/autonav/controller.php on line 256,
referer:
http://test.cabinetsonline.com.au/home/index.php/dashboard/tfe_goog...
[Tue Apr 09 14:23:21 2013] [error] [client 122.148.247.237] PHP Fatal
error: Call to a member function getCollectionID() on a non-object in
/home/capt/build/home/concrete/blocks/autonav/controller.php on line 256,
referer:
http://test.cabinetsonline.com.au/home/index.php/dashboard/tfe_goog...
[Tue Apr 09 14:23:25 2013] [error] [client 122.148.247.237] PHP Fatal
error: Call to a member function getCollectionID() on a non-object in
/home/capt/build/home/concrete/blocks/autonav/controller.php on line 256,
referer:http://test.cabinetsonline.com.au/home/index.php/dashboard/welcome/...
[Tue Apr 09 14:23:25 2013] [error] [client 122.148.247.237] PHP Fatal
error: Call to a member function getCollectionID() on a non-object in
/home/capt/build/home/concrete/blocks/autonav/controller.php on line 256,
referer:http://test.cabinetsonline.com.au/home/index.php/dashboard/welcome/...
[Tue Apr 09 14:24:32 2013] [error] [client 122.148.247.237] PHP Fatal
error: Call to a member function getCollectionID() on a non-object in
/home/capt/build/home/concrete/blocks/autonav/controller.php on line 256,
referer:
http://test.cabinetsonline.com.au/home/index.php/dashboard/config_s...
[Tue Apr 09 14:24:37 2013] [error] [client 122.148.247.237] PHP Fatal
error: Call to a member function getCollectionID() on a non-object in
/home/capt/build/home/concrete/blocks/autonav/controller.php on line 256,
referer:
http://test.cabinetsonline.com.au/home/index.php/dashboard/tc_click...
[Tue Apr 09 14:44:43 2013] [error] [client 122.148.247.237] PHP Fatal
error: Call to a member function getCollectionID() on a non-object in
/home/capt/build/home/concrete/blocks/autonav/controller.php on line 256,
referer:http://test.cabinetsonline.com.au/home/index.php/dashboard/...

However I did find another forum post indicating I could add:
if (!$c || !method_exists($c, "getCollectionID")) return array();
So I added this line to those files and the messages went away, but I still
got the 'Page not found'.

I've just tracked back through the logs to the beginning of this saga... it
would appear we started with some invalid permissions. There are a number
of errors like this:
[Sat Mar 09 08:34:32 2013] [error] [client 121.222.142.84] PHP Warning:
Unknown: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct
(/home/caps/build/home/files/tmp) in Unknown on line 0, referer:
http://cabinetsonline.com.au/home/index.php/why-buy-from-us/intergr...

This error looks like the customer tried to upgrade from (I think it is
5.4.2.2) straight to 5.6.0.2, however I'm fairly sure the permissions were
still a problem. This error goes on for 100s of pages - with a growing
number of "/"s appending to the directory name being opened... I think it
goes on until the directory name reaches some limit:
[Mon Mar 18 09:26:27 2013] [error] [client 110.32.20.215] PHP Warning:
opendir(/home/caps/build/home/single_pages/dashboard): failed to open dir:
Permission denied in
/home/caps/build/home/updates/concrete5.6.0.2/concrete/core/libraries/environment.php
on line 95, referer:
http://cabinetsonline.com.au/home/index.php/dashboard/system/backup...
[Mon Mar 18 09:26:27 2013] [error] [client 110.32.20.215] PHP Warning:
readdir() expects parameter 1 to be resource, boolean given in
/home/caps/build/home/updates/concrete5.6.0.2/concrete/core/libraries/environment.php
on line 96, referer:
http://cabinetsonline.com.au/home/index.php/dashboard/system/backup...
[Mon Mar 18 09:26:27 2013] [error] [client 110.32.20.215] PHP Warning:
opendir(/home/caps/build/home/single_pages/dashboard/): failed to open dir:
Permission denied in
/home/caps/build/home/updates/concrete5.6.0.2/concrete/core/libraries/environment.php
on line 95, referer:
http://cabinetsonline.com.au/home/index.php/dashboard/system/backup...
[Mon Mar 18 09:26:27 2013] [error] [client 110.32.20.215] PHP Warning:
readdir() expects parameter 1 to be resource, boolean given in
/home/caps/build/home/updates/concrete5.6.0.2/concrete/core/libraries/environment.php
on line 96, referer:
http://cabinetsonline.com.au/home/index.php/dashboard/system/backup...
[Mon Mar 18 09:26:27 2013] [error] [client 110.32.20.215] PHP Warning:
opendir(/home/caps/build/home/single_pages/dashboard//): failed to open
dir: Permission denied in
/home/caps/build/home/updates/concrete5.6.0.2/concrete/core/libraries/environment.php
on line 95, referer:
http://cabinetsonline.com.au/home/index.php/dashboard/system/backup...
[Mon Mar 18 09:26:27 2013] [error] [client 110.32.20.215] PHP Warning:
readdir() expects parameter 1 to be resource, boolean given in
/home/caps/build/home/updates/concrete5.6.0.2/concrete/core/libraries/environment.php
on line 96, referer:
http://cabinetsonline.com.au/home/index.php/dashboard/system/backup...
[Mon Mar 18 09:26:27 2013] [error] [client 110.32.20.215] PHP Warning:
opendir(/home/caps/build/home/single_pages/dashboard///): failed to open
dir: Permission denied in
/home/caps/build/home/updates/concrete5.6.0.2/concrete/core/libraries/environment.php
on line 95, referer:
http://cabinetsonline.com.au/home/index.php/dashboard/system/backup...
[Mon Mar 18 09:26:27 2013] [error] [client 110.32.20.215] PHP Warning:
readdir() expects parameter 1 to be resource, boolean given in
/home/caps/build/home/updates/concrete5.6.0.2/concrete/core/libraries/environment.php
on line 96, referer:
http://cabinetsonline.com.au/home/index.php/dashboard/system/backup...
[Mon Mar 18 09:26:27 2013] [error] [client 110.32.20.215] PHP Warning:
opendir(/home/caps/build/home/single_pages/dashboard////): failed to open
dir: Permission denied in
/home/caps/build/home/updates/concrete5.6.0.2/concrete/core/libraries/environment.php
on line 95, referer:
http://cabinetsonline.com.au/home/index.php/dashboard/system/backup...

It seems to finish with this one:
[Mon Mar 18 10:33:13 2013] [error] [client 119.207.230.253] PHP Fatal
error: Allowed memory size of 1073741824 bytes exhausted (tried to
allocate 71 bytes) in
/home/caps/build/home/updates/concrete5.6.0.2/concrete/core/libraries/environment.php
on line 92, referer:
http://www.google.co.kr/imgres?q=polytec&um=1&hl=ko&new...

Later we start getting lots of these:
[Mon Mar 18 11:33:15 2013] [error] [client 110.32.20.215] File does not
exist:
/home/caps/build/home/updates/concrete5.6.0.2/concrete/css/ccm.ui.css,
referer:http://cabinetsonline.com.au/home/...
[Mon Mar 18 11:33:15 2013] [error] [client 110.32.20.215] File does not
exist:
/home/caps/build/home/updates/concrete5.6.0.2/concrete/css/ccm.dialog.css,
referer:http://cabinetsonline.com.au/home/...
[Mon Mar 18 11:33:15 2013] [error] [client 110.32.20.215] File does not
exist:
/home/caps/build/home/updates/concrete5.6.0.2/concrete/css/ccm.menus.css,
referer:http://cabinetsonline.com.au/home/...
[Mon Mar 18 11:33:15 2013] [error] [client 110.32.20.215] File does not
exist:
/home/caps/build/home/updates/concrete5.6.0.2/concrete/css/ccm.forms.css,
referer:http://cabinetsonline.com.au/home/...
[Mon Mar 18 11:33:15 2013] [error] [client 110.32.20.215] File does not
exist:
/home/caps/build/home/updates/concrete5.6.0.2/concrete/css/ccm.search.css,
referer:http://cabinetsonline.com.au/home/...
[Mon Mar 18 11:33:15 2013] [error] [client 110.32.20.215] File does not
exist:
/home/caps/build/home/updates/concrete5.6.0.2/concrete/css/ccm.filemanager.css,
referer:http://cabinetsonline.com.au/hom...
e/

Still later it looks like we are back to 5.4.2.2:
[Tue Mar 19 15:50:43 2013] [error] [client 110.32.20.215] File does not
exist:
/home/caps/build/home/updates/concrete5.4.2.2/concrete/blocks/html/auto.js,
referer:http://cabinetsonline.com.au/home/index.php/contact-us1/...
[Tue Mar 19 15:51:01 2013] [error] [client 110.32.20.215] File does not
exist:
/home/caps/build/home/updates/concrete5.4.2.2/concrete/blocks/html/auto.js,
referer:http://cabinetsonline.com.au/home/index.php/contact-us1/...

Then we start getting these getCollectionID errors:
[Mon Apr 01 19:38:25 2013] [error] [client 101.162.154.184] PHP Fatal
error: Call to a member function getCollectionID() on a non-object in
/home/caps/build/home/concrete/blocks/autonav/controller.php on line 260,
referer:
http://cabinetsonline.com.au/home/index.php/dashboard/pages/themes/...
[Mon Apr 01 19:38:33 2013] [error] [client 101.162.154.184] PHP Fatal
error: Call to a member function getCollectionID() on a non-object in
/home/caps/build/home/concrete/blocks/autonav/controller.php on line 260,
referer:http://cabinetsonline.com.au/home/index.php/dashboard/composer/...
[Mon Apr 01 19:38:38 2013] [error] [client 101.162.154.184] PHP Fatal
error: Call to a member function getCollectionID() on a non-object in
/home/caps/build/home/concrete/blocks/autonav/controller.php on line 260,
referer:http://cabinetsonline.com.au/home/index.php/dashboard/extend/...
[Mon Apr 01 19:40:09 2013] [error] [client 101.162.154.184] PHP Fatal
error: Class 'GlobalArea' not found in
/home/caps/build/home/packages/theme_pygmalion_konsus/themes/theme_pygmalion_konsus/elements/header.php
on line 33, referer:
http://cabinetsonline.com.au/home/index.php/dashboard/sitemap/full/...

The above logs are all from the LIVE site. I've got a copy of the system
and the database that I'm using for testing to try and put this back
together again, however I know you probably wanted to see the progress.

Cheers
Murray



On 9 April 2013 16:24, concrete5 Community <discussions@concretecms.com>wrote:
adajad replied on at Permalink Reply
adajad
Looking at the live site I can see some inconsistencies. Your site clearly states:
<meta name="generator" content="concrete5 - 5.4.1.1" />


But looking further down the source code you find
<script type="text/javascript">
var CCM_DISPATCHER_FILENAME = '/home/index.php';
var CCM_CID = 1;
var CCM_EDIT_MODE = false;
var CCM_ARRANGE_MODE = false;
var CCM_IMAGE_PATH = "/home/updates/concrete5.4.2.2/concrete/images";
var CCM_TOOLS_PATH = "/home/index.php/tools/required";
var CCM_REL = "/home";
</script>


That, to me, suggests the faulting upgrade took place when upgrading from 5.4.1.1. Probably the update script didn't finish due to a timeout.

Have you been doing manual updates or automatic ones after the 5.4.2.2 upgrade (which looks like it has been done automatically)?
admin replied on at Permalink Reply
Hi Adajad

The customer has been doing their own updating. I did the original install
and then gave them the Super User account.

So what steps should I take to recover this system?

1. Should I retry running the 5.4.1.1 update? (I'm not sure how to do this
but if you point me in the right direction I can probably work it out)

Cheers
Murray




On 9 April 2013 17:23, concrete5 Community <discussions@concretecms.com>wrote:
julia replied on at Permalink Reply
julia
muzza - I reactivated your account so you can log in. One of your messages was flagged as spam by the system and your account was automatically deactivated.
admin replied on at Permalink Reply
Thanks Julia
admin replied on at Permalink Reply
I tried installing 5.4.1.1 again and running the upgrade script - the script seemed to run and complete (there were no errors on the screen or in the php logs).

Still have no idea why I'm getting this "Page not found" problem or what is causing that. I download these versions of Concrete from the site, copy over the 'concrete' folder after renaming the current 'concrete' folder to something else. But still I get the same "Page not found" errors. Clearly the pages must be there...

I just spoke with the customer and they have accepted the only way to solve this is to install a fresh copy of the latest version and they are going to rebuild the entire site from scratch.

Nobody here is particularly happy as the problem has not been solved and we are concerned it will happen again.