Help - Search - Members - Calendar
Full Version: forums updated
linux-noob.com/forums > General Stuff > Site News
anyweb
notice anything different ?

cheers
anyweb
anyweb
seems the upgrade got borked somehow

in the end we had to edit php.ini to reveal the php errors as any topic you clicked on revealed a BLANK PAGE

CODE
[root@www cacheid_6]# cp /usr/local/lib/php.ini /usr/local/lib/php.ini.backup


to turn on php error reporting edit php.ini (use locate php.ini to find it) and edit the following bits

QUOTE
error_reporting E_ALL
display_errors = On


once done restart apache/httpd

the PHP error reported after modifying php.ini was

QUOTE
Fatal error: Function name must be a string in /usr/local/apache/htdocs/forums/cache/skin_cache/cacheid_6/skin_topic.php on line 696


luckily i backup (check out the apache section of the forums., and look at the backup script) so I restored that file to my webserver and it WORKED

now that it works, time to restore php.ini to it's previous non-error reporting state

CODE
[root@www cacheid_6]# cp /usr/local/lib/php.ini.backup /usr/local/lib/php.inicp: overwrite `/usr/local/lib/php.ini'? y


many thanks to the following

znx, jy, kobras ! and the other linux-noob members who helped out on #linux-noob and the admin channel !

good work dudes

cheers
anyweb
KobrAs
any time mate, im happy that all is fine and site is UP.

cheers smile.gif
znx
ace, shame that the upgrade broke us .. thank god you are a smart user and backup !!! biggrin.gif
anyweb
it broke again today, this time the error (via php method mentioned above) was

QUOTE
Fatal error: Class 'skin_topic_6' not found in /usr/local/apache/htdocs/forums/sources/ipsclass.php on line 2119


i copied back all of skin_cache from a backup and it's fine again,

dunno why it's happening though.....

any ideas ?

cheers
anyweb
znx
QUOTE (anyweb @ Jun 29 2007, 06:41 PM) *
any ideas ?


Without understanding how the forums software works, I can only assume that the skin_cache is generated at runtime. It is therefore possible that the skin_cache will regenerate if files are altered/updated (or by some other detection). I can only assume that when I added the additional field to the profile (check the user profile pages "Distribution") that it caused the skin to regenerate.

This basically means that if we do anything at the ACP related to the layout/colour et al, it will break the forums .. most disappointing.
znx
Here is what I did to "break" the forums.
  • Login ACP
  • Look & Feel
  • With "IPB 2.2.0 Default" click on the drop-down menu and select "Edit template HTML"
  • Go to "Topic View"
  • Go to "renderrow"
  • Edit and "Save Template Bit" (it doesn't matter what you edit there, even adding "Hello" will break it).
It says:
Wrote skin_cache/cacheid_6/skin_topic.php
anyweb
just updated from 2.3.1 to 2.3.2

and once again now when you click on any topic i get
QUOTE
Fatal error: Function name must be a string in /usr/local/apache/htdocs/forums/cache/skin_cache/cacheid_6/skin_topic.php on line 696


as this is very annoying I re-read what you wrote above znx, found and located your 'change' and removed it. Once removed the forum renders all posts correctly

so i wonder was there a bug/mistake in what you were making a change to, or if the skin_cache file/folder itself had incorrect perms when you tried to make the change thereby causing the confusing error

anyway its working now, go check out the ACP, cool huh ?

cheers
anyweb
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.