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.


ocPortal 8 RC4 released - Comments

Login / Search

 [ Join | More ]
 

ocPortal 8 RC4 released

Posted 12 April 2012, 4:55 PM

8 RC4 released. Read the full article for a list of changes, and upgrade information.

Read more


Avatar
For some obscure reason the 'Search' box refuses to display on my cloned site. I've checked all the codes from both sites (identical), checked overrides (there are overrides in the live site, but the cloned site is now the equivalent of a 'fresh' install) cleared caches (ocP and browser), put CloudFlare into 'Developer' mode - but nada, nada, nada!

Pointers as to what to look for, please …

... searching for \'Search\'

 :$

Avatar
Fletch-

Purge the CloudFlare cache too. I've had a couple of instances where "developer mode" seems to not always pass thru to my host and this has always fixed them.

I've reported this issue to CloudFlare and they are investigating it.

Bob
Avatar
Purge the CloudFlare cache too.

Thanks Bob. Didn't help. Still looking …


Avatar
Could there be something weird going on in your BLOCK_MAIN_SEARCH template? I couldn't find reference to a language string named '_SEARCH' anywhere in the system, although '_SEARCH' is used in ocPortal in substitute of zone names where modules should be located via searching.
Avatar
Yes and No!

The BLOCK_MAIN_SEARCH.tpl was modified, but the main change was that I was calling the block with a 'tray_closed' parameter. WinMerge identified a couple of other 'minor' differences between the 8-RC4 template and the one I was trying to use. I edited them.

HOWEVER

It appears that the active CloudFlare was the little gremlin that was causing ALL the problems. It still had a cached (broken)  version and continued to serve it up despite my choosing Developer Mode and clearing its caches (Bob's advice) - SO - I've disabled CloudFlare until I've done all the necessary editing.

Warning to all users of CloudFlare:
It is a fine 'catch-all' proggy that does a good job against 'spammers' and 'botnets' and saves you mega-bandwidth (hosts love you!), but do remember to turn it off when you are actually working (editing) your site or you won't see your edits immediately (in all fairness, they warn you about this). Bummer!

My other problem still continues, but that will be pursued in its own thread!

 :thumbs:



Avatar
Slide shows don't play and they have gone back to reloading the whole page instead of just the image when you click through them. They were working nicely in RC3.

I discovered it on a live site I upgraded and then checked it on a fresh install on my localhost.



Avatar
A patch hadn't merged in right, fix attached:

Attachment
themes/default/templates/JAVASCRIPT_GALLERIES.tpl
» Download: JAVASCRIPT_GALLERIES.tpl (6 Kb, 281 downloads so far)


Avatar
Here is a strange profile viewing bug for you, Chris…
  • Normal members can view all profiles as expected
  • Admin (super user) can view all profiles as expected
  • My user (near super user privileges) can not view anyone's profile, and I get a stack trace, but if I…
    • Set "Global Privileges: Forums: View other people's Private Topics and posts" for my user to yes, I can view profiles (and personal topics), and…
      • All members can still view all profiles normally
  • A member with slightly less privileges than me can view all profiles as expected

This is the stack trace I get when trying to view …

Code

An error has occurred

"sholzy" does not have the privilege, 'View other people's Private Topics and posts'. (version: 8-RC4, PHP version: 5.3.8, URL: /wis/index.php?page=members&type=view&id=mjm_1969&keep_fatalistic=1)


File    '/home/whiteisl/public_html/wis/sources/failure.php'
Line    '683'
Function    'get_html_trace'
Args   

File    '/home/whiteisl/public_html/wis/sources/global2.php'
Line    '979'
Function    '_fatal_exit'
Args   
object


File    '/home/whiteisl/public_html/wis/sources/failure.php'
Line    '237'
Function    'fatal_exit'
Args   
object


File    '/home/whiteisl/public_html/wis/sources/global2.php'
Line    '939'
Function    '_generic_exit'
Args   
object

'WARN_SCREEN'


File    '/home/whiteisl/public_html/wis/sources/failure.php'
Line    '1,009'
Function    'warn_exit'
Args   
object


File    '/home/whiteisl/public_html/wis/sources/permissions.php'
Line    '97'
Function    '_access_denied'
Args   
'SPECIFIC_PERMISSION'

'view_other_pt'

false


File    '/home/whiteisl/public_html/wis/sources/ocf_forumview_pt.php'
Line    '39'
Function    'access_denied'
Args   
'SPECIFIC_PERMISSION'

'view_other_pt'


File    '/home/whiteisl/public_html/wis/sources/ocf_forumview.php'
Line    '43'
Function    'ocf_get_personal_topics'
Args   
0

10

1172


File    '/home/whiteisl/public_html/wis/sources/hooks/systems/profiles_tabs/pts.php'
Line    '61'
Function    'ocf_render_forumview'
Args   
NULL

''

10

0

1

1172


File    '/home/whiteisl/public_html/wis/sources/ocf_profiles.php'
Line    '49'
Function    'render_tab'
Class    'Hook_Profiles_Tabs_pts'
Object    Hook_Profiles_Tabs_pts::__set_state(array( ))
Type    '->'
Args   
1172

354


File    '/home/whiteisl/public_html/wis/site/pages/modules/members.php'
Line    '267'
Function    'render_profile_tabset'
Args   
1172

354

'mjm_1969'


File    '/home/whiteisl/public_html/wis/site/pages/modules/members.php'
Line    '102'
Function    'profile'
Class    'Module_members'
Object    Module_members::__set_state(array( ))
Type    '->'
Args   

File    '/home/whiteisl/public_html/wis/sources/zones.php'
Line    '424'
Function    'run'
Class    'Module_members'
Object    Module_members::__set_state(array( ))
Type    '->'
Args   

File    '/home/whiteisl/public_html/wis/sources/site.php'
Line    '1,016'
Function    'load_module_page'
Args   
'site/pages/modules/members.php'

'members'


File    '/home/whiteisl/public_html/wis/sources/site.php'
Line    '785'
Function    'request_page'
Args   
'members'

true


File    '/home/whiteisl/public_html/wis/index.php'
Line    '104'
Function    'do_site'
Args   

Avatar
This should fix it. It is currently checking the 'assume_any_member' permission instead of the 'view_other_pt' permission.

Your permission setup is kind of odd -- 'assume_any_member' would be considered a higher level of access than 'view_other_pt', so you may want to remove it anyway.

Attachment
sources/hooks/systems/profiles_tabs/pts.php
» Download: pts.php (1.77 Kb, 307 downloads so far)
Avatar

Chris Graham said

This should fix it. It is currently checking the 'assume_any_member' permission instead of the 'view_other_pt' permission.

Your permission setup is kind of odd -- 'assume_any_member' would be considered a higher level of access than 'view_other_pt', so you may want to remove it anyway.
Yeah, I know, I don't do anything normal. :lol:   My permission setup gives me the best of two worlds. Basically, a watered-down administrator.

Thanks, Chris. I uploaded to my server and it seems to be working now.

I'm not sure what you meant by "so you may want to remove it anyway". Were you referring to what this patch does?
Avatar

sholzy said

Chris Graham said

This should fix it. It is currently checking the 'assume_any_member' permission instead of the 'view_other_pt' permission.

Your permission setup is kind of odd -- 'assume_any_member' would be considered a higher level of access than 'view_other_pt', so you may want to remove it anyway.
Yeah, I know, I don't do anything normal. :lol:   My permission setup gives me the best of two worlds. Basically, a watered-down administrator.

Thanks, Chris. I uploaded to my server and it seems to be working now.

I'm not sure what you meant by "so you may want to remove it anyway". Were you referring to what this patch does?


That you might want to remove that permission, but you addressed that in your reply.




Avatar
That's half an hour of my evening spoken for then. Cheers Chris :)

Avatar
tree upgrades and no problems so far :)

Avatar
One or two minor glitches being experienced, but I need to do some extensive 'comparisons' between the live site and the cloned one to properly identify where it's all going TU.

More, as and when I find them …

Avatar
So far so good! I wonder if the subscription issue got fixed... but it looks good, saw no errors yet.

Avatar
Another:



Is this a breakdown in ocPortal's feed, or is it a glitch with something that came with RC4?




Update:

Problem appears to have been resolved after uninstalling 'Lightbox2' which was 'activated in error' after upgrading to RC4.

 :thumbs:




Last edit: by Fletch
Avatar
What feed is it? The HTTP downloader in ocPortal has been extended a bit (complex to explain, but basically due to mod_security) which has made it a bit more complex.
Avatar
It's the ocPortal feed (the one that notifies about latest releases, etc.), and it looks like I jumped the gun when I suggested 'Lightbox2' was the culprit, because it is back again!

BAH, HUMBUG!

bummer
Avatar
This should fix it:
Attachment
sources/files2.php
» Download: files2.php (38 Kb, 291 downloads so far)
Avatar
thanks

That 'fixed' it.

 :thumbs:





Avatar
Hey Chris,

now I also found some time to test the latest RC4.

After the upgrade from 7.1.5 I get some serious errors now. Go to das junge Beobachterforum -- Andromedaforum and click on the left-hand side on "Galerie". You will get a database error and after short time the browser (for me Firefox 11) gives a content encoding error. Next point, I can't access to the forum (a database error will appear again).

And I found a seccurity issue. When you go to Benutzerprofil von Falko -- Andromedaforum even a guest users are able to see some internal threads, e.g. Server-Wechsel.

I did the file integrity scan and removed all previous changed files stored in the _coustom folders and removed all my template files to avoid interferences.

Best regards
Falko
Avatar
Oh dear. I'm looking into the 'security issue' now.

The stack trace thing sounds like the catalogues module not upgrading correctly.

The catalogues module version has gone from '5' to '6'. The upgrader "database upgrade" step should have handled that.
Were you on an intermedate release somehow? (to be honest I can't remember if we pushed out an updated catalogues to the tracker, for the sponsorship that happened on it)

Avatar

Falko said

Hey Chris,

now I also found some time to test the latest RC4.

After the upgrade from 7.1.5 I get some serious errors now. Go to das junge Beobachterforum -- Andromedaforum and click on the left-hand side on "Galerie". You will get a database error and after short time the browser (for me Firefox 11) gives a content encoding error. Next point, I can't access to the forum (a database error will appear again).

And I found a seccurity issue. When you go to Benutzerprofil von Falko -- Andromedaforum even a guest users are able to see some internal threads, e.g. Server-Wechsel.

I did the file integrity scan and removed all previous changed files stored in the _coustom folders and removed all my template files to avoid interferences.

Best regards
Falko

I'm going to bring up the security issue in a news post now.

Avatar

Falko said

Hey Chris,

now I also found some time to test the latest RC4.

After the upgrade from 7.1.5 I get some serious errors now. Go to das junge Beobachterforum -- Andromedaforum and click on the left-hand side on "Galerie". You will get a database error and after short time the browser (for me Firefox 11) gives a content encoding error. Next point, I can't access to the forum (a database error will appear again).

And I found a seccurity issue. When you go to Benutzerprofil von Falko -- Andromedaforum even a guest users are able to see some internal threads, e.g. Server-Wechsel.

I did the file integrity scan and removed all previous changed files stored in the _coustom folders and removed all my template files to avoid interferences.

Best regards
Falko

If it is the case you're on an intermediate version of the catalogues module, please zip and attach a copy of your site/pages/modules/catalogues.php file and I'll look into creating a transition script.


Avatar
Got an error using the "switch user" function.

Code

An error has occurred

PHP ERROR [1] Unsupported operand types in sources/menus.php on line 780 (version: 8-RC4, PHP version: 5.3.8, URL: /wis/index.php?page=start&keep_su=xxxxxxx)

Here is the stack trace:

Below is a stack trace revealing the state the software was in when the error occurred. If this represents a bug in the unmodified software, you may want to check ocPortal website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.

File    '/home/whiteisl/public_html/wis/sources/failure.php'
Line    '683'
Function    'get_html_trace'
Args   

File    '/home/whiteisl/public_html/wis/sources/global2.php'
Line    '979'
Function    '_fatal_exit'
Args   
'PHP ERROR [1] Unsupported operand types in sources/menus.php on line 780'


File    '/home/whiteisl/public_html/wis/sources/failure.php'
Line    '217'
Function    'fatal_exit'
Args   
'PHP ERROR [1] Unsupported operand types in sources/menus.php on line 780'


File    '/home/whiteisl/public_html/wis/sources/global2.php'
Line    '853'
Function    '_ocportal_error_handler'
Args   
'error'

1

'Unsupported operand types'

'sources/menus.php'

780


File    '/home/whiteisl/public_html/wis/sources/global2.php'
Line    '789'
Function    'ocportal_error_handler'
Args   
1

'Unsupported operand types'

'/home/whiteisl/public_html/wis/sources/menus.php'

780


Function    'catch_fatal_errors'
Args   
Avatar
Does this fix it?

Attachment
sources/menus.php
» Download: menus.php (29 Kb, 316 downloads so far)
Avatar

Chris Graham said

Does this fix it?

Attachment
sources/menus.php
» Download: menus.php (29 Kb, 316 downloads so far)


"Switch User" fixed!  :thumbs:


Last edit: by sholzy



Avatar
Hey Chris,

the seccurity issue is fixed now :thumbs:

And I got access again to the gallery and the forum. I simply made a clean RC4 installation and copied the following tables:

ocp_catalogue_entry_linkage.sql
ocp_notification_lockdown.sql
ocp_notifications_enabled.sql​

Chris said

The catalogues module version has gone from '5' to '6'. The upgrader "database upgrade" step should have handled that.


My version history is as follows:

5.0.3 -> 7.1.3 -> 7.1.4 -> 7.1.5 -> 8 RC4

I attached the catalogues.php from my current 7.1.5 installation.

Best regards
Falko

Attachment
» Download: catalogues.zip (11 Kb, 313 downloads so far)

Show 1 reply


Avatar
Ah, and could you make a style adjustment please, so that the quote box will be displayed without the big / only with a single-line gap by default? The version above looks simply ugly.

When you type in e.g.:

bla bla bla

QUOTE

bla bla

it should even looks like:

bla bla bla

QUOTE

bla bla bla

and NOT:

bla bla bla


QUOTE


bla bla bla

Best regards
Falko

Show 1 reply


Show 19 more replies

1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Expand