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

ocPortal 8 RC4 released

Login / Search

 [ Join | More ]
 
Posted
Rating:
#83369
Avatar

ocStaff (admin)

Comment: #news_288

sholzy said

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   
Does this fix it?

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



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#83371
Avatar

ocStaff (admin)

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.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#83375
Avatar

ocStaff (admin)

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.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#83385
Avatar

Honoured member

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, 71 downloads so far)

ANDROMEDA - Das junge Beobachterforum :)
Back to the top
 
Posted
Rating:
#83386
Avatar

Honoured member

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

ANDROMEDA - Das junge Beobachterforum :)
Back to the top
 
Posted
Rating:
#83388
Avatar

Community saint

Chris Graham said

Does this fix it?




"Switch User" fixed!  :thumbs:


Last edit: by sholzy

Steve

Back to the top
 
Posted
Rating:
#83393
Avatar

Community saint

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   


Steve

Back to the top
 
Posted
Rating:
#83395
Avatar

Community saint

I found this one hiding out at the bottom of the admin panel, off the screen. Almost missed it since I hardly ever scroll down on that page.

Code

An error has occurred

PHP WARNING [2] Invalid argument supplied for foreach() in sources/mail.php on line 246 (version: 8-RC4, PHP version: 5.3.8, URL: /wis/adminzone/index.php?page=start)



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 WARNING [2] Invalid argument supplied for foreach() in sources/mail.php on line 246'


File    '/home/whiteisl/public_html/wis/sources/failure.php'
Line    '217'
Function    'fatal_exit'
Args   
'PHP WARNING [2] Invalid argument supplied for foreach() in sources/mail.php on line 246'


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

2

'Invalid argument supplied for foreach()'

'sources/mail.php'

246


File    '/home/whiteisl/public_html/wis/sources/mail.php'
Line    '246'
Function    'ocportal_error_handler'
Args    ...

File    '/home/whiteisl/public_html/wis/sources/notifications.php'
Line    '457'
Function    'mail_wrap'
Args   
'xxxxxxxxxxxxxxxxxxx is on Admin Zone front page'

'Someone who is logged-in as {xxxxxxxxxxxxxxxxxxx} has accessed the Admin Zone front page. That\'s probably a normal thing for them -- this notification is a security feature to help you spot potential hackers, if you think this looks wrong.'

'carbon@********.com'

'Guest'

''

''

3

NULL

true

NULL

false

false


File    '/home/whiteisl/public_html/wis/sources/notifications.php'
Line    '226'
Function    '_dispatch_notification_to_member'
Args   
1

-1

'adminzone_frontpage_accessed'

NULL

'xxxxxxxxxxxxxxxxxxx is on Admin Zone front page'

'Someone who is logged-in as {xxxxxxxxxxxxxxxxxxx} has accessed the Admin Zone front page. That\'s probably a normal thing for them -- this notification is a security feature to help you spot potential hackers, if you think this looks wrong.'

NULL

3

false


Function    'dispatch'
Class    'Notification_dispatcher'
Object    Notification_dispatcher::__set_state(array( 'notification_code' => 'adminzone_frontpage_accessed', 'code_category' => NULL, 'subject' => 'xxxxxxxxxxxxxxxxxxx is on Admin Zone front page', 'message' => 'Someone who is logged-in as {xxxxxxxxxxxxxxxxxxx} has accessed the Admin Zone front page. That\'s probably a normal thing for them -- this notification is a security feature to help you spot potential hackers, if you think this looks wrong.', 'to_member_ids' => NULL, 'from_member_id' => NULL, 'priority' => 3, 'store_in_staff_messaging_system' => false, 'no_cc' => false, ))
Type    '->'
Args   


Update:
Discovered this started when I set "Notification lock-down: Security" to "Member's typical notification type"




Last edit: by sholzy

Steve

Back to the top
 
Posted
Rating:
#83412
Avatar

ocStaff (admin)

Falko said

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, 71 downloads so far)


This really shouldn't have happened. Did you definitely perform the "database upgrade" step in the upgrader? You can go back in now if you didn't.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#83413
Avatar

ocStaff (admin)

Falko said

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

I'm not sure what you're seeing, please attach a screenshot.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#83414
Avatar

ocStaff (admin)

sholzy said

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   

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, 71 downloads so far)



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#83422
Avatar

Community saint

I think we have a upload problem. In both browsers I got the same error screen (see images) if I try to upload a attachment to a com page. There will be code on the page, but no image.

Image browse Opera


Chrome browser




This is on RC4
Normal uploaders look to work well


digiflash | Photography,Webdesign and digital art community (dutch)
Back to the top
 
Posted
Rating:
#83423
Avatar

ocStaff (admin)

Harry-S said

I think we have a upload problem. In both browsers I got the same error screen (see images) if I try to upload a attachment to a com page. There will be code on the page, but no image.

Image browse Opera


Chrome browser




This is on RC4
Normal uploaders look to work well

I think this must be something happening on the server or with your connection, attachments seem very stable now.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#83424
Avatar

Community saint

I have this problem on two places on diffrent machines and connections.



digiflash | Photography,Webdesign and digital art community (dutch)
Back to the top
 
Posted
Rating:
#83426
Avatar

Community saint

Its only the flash uploader..



digiflash | Photography,Webdesign and digital art community (dutch)
Back to the top
 
Posted
Rating:
#83427
Avatar

Community saint

Hmm this happening on one domain, I use three installation on this same server. the both other two have no problems with the flash uploader. The are all RC4  strange.


digiflash | Photography,Webdesign and digital art community (dutch)
Back to the top
 
Posted
Rating:
#83428
Avatar

ocStaff (admin)

Ah, try clearing Flash's cookies. If you can get into the Flash settings you should find it. It's different from browser cookies.

I'm not sure if that will help, but a long time ago we saw this problem.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#83429
Avatar

ocStaff (admin)

Also I wonder if somehow those sites could be conflicting.

I would recommend the non-bundled plupload addon. The only reason we're not bundling it is licensing – it just sits on top of swfupload and does a better job ("HTML5" by default).



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#83430
Avatar

Community saint

Thanks Chris, I testit is on the same domain in the file/media and got the same error. So I will try the pupload addon. and will report after that.



digiflash | Photography,Webdesign and digital art community (dutch)
Back to the top
 
Posted
Rating:
#83431
Avatar

Community saint

Oke Puload installed on that domain. I got a error screen in the first place, but click okay I could upload a image and its placed on the right place in the page. So its working.

This is the screen shot of the error in got in the first place..





digiflash | Photography,Webdesign and digital art community (dutch)
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Expand