HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Uh oh...That's not good...

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#47102 (In Topic #10262)
Avatar

Well-settled

I was getting ready to upgrade to the new version but when i went to make a back up I got this.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, webmaster@companyrpg.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Apache/1.3.41 Server at www.companyrpg.com Port 80


And now I can't go anywhere without getting that less than informative message.

Any ideas what the problem might be? I had just uploaded the new .TAR but hadn't done anything else with it.

Back to the top
 
Posted
Rating:
#47109
Avatar

Community saint

I also have the same error. Mine occurred after upgrading to 4.14. I tried reinstalling it and no good. I am now trying 4.2 Beta 1 just to see if it makes any difference.

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#47112
Avatar

Community saint

Well upon further investigation it seems the upgrade process is changed and is not working correctly (at least not on my site).

Before if you did an upgrade from the upgrader.php thing it would do it in fairly short order with little feedback. Now it gives very detailed feedback with a separate line for each file as it is extracted which takes an excruciatingly long time (upwords of 20 minutes, used to be about 2-3 tops). After that process finished I went to click on the More Options button at the bottom and got the error again.

Checked the permission on the upgrader.php file and found that it was 766, changed it to 755 and it is working. Tried changing the index.php to 755 and got part of my site back.

It seems all of the php files on the site now have the wrong permission and they will all have to be mannually edited to the correct permission. This will take forever, will let you know when I am finished. Does anyone have a complete list of all of the file permissions for OCP?

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#47118
Avatar

There is a list here: ocPortal Tutorial: Basic Installation - ocPortal.com

If you have shell access to the server, then you can run the file called fixperms.sh and it will set them for you.

Back to the top
 
Posted
Rating:
#47120
Avatar

Community saint

Thanks for the reply Allen, unfortunately I don't think that I have Shell access. I have since gone back and tried the install process again and am still getting the long drawn out install process resulting in the wrong permissions. Again I don't know if this is an OCP issue or a problem with my hosting but I have done about 10 upgrades in the past with no problems. Now with this new process the site is totally trashed, so until I find out what the problem is, I guess I won't be doing any more updates, as it will take hours to fix it each time…

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#47121
Avatar

Community saint

Allen,

Upon checking the link you sent me there are only a few directories/files listed. There are hundreds of PHP files and it appears that it is mostly those that are the problem. My question is, is there a default that all directories/files should be set to before setting the specific settings in the link that you provided?

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#47124
Avatar

Hi,

I'm not sure why this is happening but we'll look into it.

In the mean-time, your assessment is correct Rick, 755 is the way to go.

Many Apache installs give errors if you try and call up a script that is writeable, hence this problem.
However this also means any scripts not called up directly (e.g. anything under sources/) do not need any special permissions. I wouldn't ever advise leaving excess permissions, but if you're looking to prioritise…


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#47127
Avatar

Community saint

OK so if I understand you correctly I need to set all Directories/Files to 755. Then go back and set the ones listed above to the specific settings as described in the link that Allen provided.

Please note: I have just set everything to 755 and the site is back to functioning correctly, I am in the process of making the corrections as described in the list now which I am sure is for security reasons. Will let you know if I have any further problems.

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#47148
Avatar

Well-settled

Well i set everything to 755 and then went through and edited the permissions as per the basic set-up. Now I get this error.

ocPortal error

This is an error that has been elevated to critical error status because it occured during the primary error mechanism reporting system itself (possibly due to it occuring within the standard output framework). It may be masking a secondary error that occured before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.

Unfortunately a query has failed [INSERT INTO ocp2_config (c_set, config_value, the_name, human_name, the_type, eval, the_page, section, explanation, shared_hosting_restricted, c_data) VALUES (0, '', 'show_docs', 'SHOW_DOCS', 'tick', 'return \'1\';', 'SITE', 'ADVANCED', 'CONFIG_OPTION_show_docs', 0, '')] [Unknown column 'c_set' in 'field list'] (version: 4.1.4, PHP version: 5.2.6, URL: /ocp/)

Details here are intended for the website/system-administrator, not for regular website users. If you are a regular website user, please let the website staff deal with this problem.

Depending on the error, and only if the website installation finished, you may need to edit the installation options (the info.php file).

ocProducts maintains full documentation for all procedures and tools. These may be found on the ocPortal website. If you are unable to easily solve this problem, we may be contacted from our website and can help resolve it for you.


ocPortal is a website engine created by ocProducts.


Any ideas?


Back to the top
 
Posted
Rating:
#47149
Avatar

Are you upgrading from an old major version, like 3 or 2.5?

You'll need to go back into /upgrader.php and run through the remaining options (in particular, the database upgrade).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#47175
Avatar

rick said

Well upon further investigation it seems the upgrade process is changed and is not working correctly (at least not on my site).

Before if you did an upgrade from the upgrader.php thing it would do it in fairly short order with little feedback. Now it gives very detailed feedback with a separate line for each file as it is extracted which takes an excruciatingly long time (upwords of 20 minutes, used to be about 2-3 tops). After that process finished I went to click on the More Options button at the bottom and got the error again.

Checked the permission on the upgrader.php file and found that it was 766, changed it to 755 and it is working. Tried changing the index.php to 755 and got part of my site back.

It seems all of the php files on the site now have the wrong permission and they will all have to be mannually edited to the correct permission. This will take forever, will let you know when I am finished. Does anyone have a complete list of all of the file permissions for OCP?

(upwords of 20 minutes, used to be about 2-3 tops).

Very roughly how many lines did you see (e.g. 10, 50, 100, 500, 5000)?

Have you uninstalled any addons. If so, roughly how many?

The upgrader will actually copy files into the tars for uninstalled addons, so that they remain up-to-date also. That wasn't working before, so I am wondering if the fix for the problem has caused the slow-down.
If so, we can look at resolving that.

Checked the permission on the upgrader.php file and found that it was 766, changed it to 755 and it is working. Tried changing the index.php to 755 and got part of my site back.

I can confirm.
In sources/upgrade.php 0600 should be 0002 (in 2 places).

Sorry about that.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#47207
Avatar

Well-settled

So weird. It says I need to manually load a bunch of files (mostly "hook" files). I can do that.

My only question is would it be easier to just do a fresh install of version 4.xx and then import the forum and CEDI and such into that?
Back to the top
 
Posted
Rating:
#47212
Avatar

The files should have come with the upgrade package you had, so I'm not sure what's going on there.

If a lot is missing and it's too tedious to upload individually, you can get the manual installer package from our download and upload the contents of that together (except info.php and install.php). That way you don't need to find each file individually.

You could probably do a content import if you wish, but I'd try the above first. Officially the merge import only works between 2 installs of the same version, but in practice it probably would work if you're converting from a v3 site.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#47216
Avatar

Community saint

Chris, sorry for the delay in replying. As to how many lines, I could not say exactly, if I had to guess I would say it was between 500 to 1000. And as to the add ons i have not removed anything.

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#47280
Avatar

Community saint

Not to take away from the OP but I too had similiar issues that resulted in a severe database corruption. I have a pre-patch backup of my files but won't work with the newest patch O_o

Is there a way to roll back to a previous version? Is the previous versions available for download? Thanks.
Back to the top
 
Posted
Rating:
#47281
Avatar

All old versions may be downloaded from our archive:
Root - ocPortal.com

However what kind of database corruption did you suffer? If this is relating to 4.1.5 then it is critical that the caches are emptied from within the upgrader, as the cache format has changed.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#47299
Avatar

Well-settled

Well. I think I killed it.

My site is dead. I have no idea what to do. This is the error I get.

 Fatal error: Call to undefined function _db_get_connection() in /home/compmat2/public_html/ocp/sources/database.php on line 246
Back to the top
 
Posted
Rating:
#47300
Avatar

It looks like your sources/database.php file is outdated.

Are you sure you've followed all the instructions in the upgrader, including running an integrity check to scan for out-dated/missing files?


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#47301
Avatar

Well-settled

The updater didn't have all the files I needed. I think I jumped too far with the update to begin with. When I tried to manually update the files from an older version it all went to hell.
Back to the top
 
Posted
Rating:
#47303
Avatar

Have you tried uploading all the files from the manual installer (except info.php and install.php)?


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Expand