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.


ocp 4.3rc1 Error STEP 5 local WAMP install without DNS domain

Login / Search

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

Honoured member

using hosts file for http://ocp to create test site.

ocPortal

ocPortal installer: step 5 of 10

An error has occurred

PHP [2] Invalid argument supplied for foreach()

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'C:\wamp\www\ocp\html\sources\minikernel.php'
Line'192'
Function'get_html_trace'
Args

File'C:\wamp\www\ocp\html\sources\minikernel.php'
Line'274'
Function'fatal_exit'
Args'PHP [2] Invalid argument supplied for foreach()'


File'C:\wamp\www\ocp\html\sources\database.php'
Line'49'
Function'ocportal_error_handler'
Args2

'Invalid argument supplied for foreach()'

'C:\wamp\www\ocp\html\sources\database.php'

49

array ( 'QUERY_LIST' => array ( ), 'QUERY_COUNT' => 1, 'NO_QUERY_LIMIT' => false, 'NO_DB_SCOPE_CHECK' => false, 'QUERY_FILE_LOG' => NULL, 'SITE_INFO' => array ( 'default_lang' => 'EN', 'db_type' => 'mysql', 'forum_type' => 'ocf', 'board_path' => 'C:\wamp\www\ocp\html/forums', 'clear_existing_forums_on_install' => 'yes', 'domain' => 'ocp', 'base_url' => 'http://ocp', 'table_prefix' => 'ocp4_', 'admin_password' => '202cb962ac59075b964b07152d234b70', 'allow_reports_default' => '1', 'admin_username' => 'admin', 'db_site' => 'ocf', 'db_site_host' => 'localhost', 'db_site_user' => 'root', 'db_site_password' => '', 'user_cookie' => 'ocp_member_id', 'pass_cookie' => 'ocp_member_hash', 'cookie_domain' => '', 'cookie_path' => '/', 'cookie_days' => '120', 'db_forums' => 'ocf', 'db_forums_host' => 'localhost', 'db_forums_user' => 'root', 'db_forums_password' => '', 'ocf_table_prefix' => 'ocp4_', ), 'TABLE_LANG_FIELDS' => array ( ), '_table_lang_fields' => NULL, )


Function'init__database'
Args

File'C:\wamp\www\ocp\html\install.php'
Line'1,931'
Function'call_user_func'
Args'init__database'


File'C:\wamp\www\ocp\html\install.php'
Line'965'
Function'require_code'
Args'database'


File'C:\wamp\www\ocp\html\install.php'
Line'194'
Function'step_5'
Args

//
Version 4 3.0 RC1
ocPortal, created by ocProducts

http://ocportal.com/

Back to the top
 
Posted
Rating:
#56773
Avatar

Yes, this will be fixed soon, it's been reported by a couple of other people too.


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:
#56799
Avatar

Honoured member

Oops, I tried a couple of searches but didn't see it.

I do apologize.  Please delete this redundant thread. :-)
Back to the top
 
Posted
Rating:
#56821
Avatar

Honoured member

I'm experiencing this same issue on 4.3 rc2 as well.
Back to the top
 
Posted
Rating:
#56831
Avatar

Are you using the manual installer or the quick installer? Is it possible you have the old sources/database.php around?
Could it be a different error (different stack trace?)?


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:
#56850
Avatar

Honoured member

Here is the error I get,  I'm using the mysqli driver.

ocPortal installer: step 5 of 10
An error has occurred

PHP [2] mysqli_real_escape_string() expects parameter 1 to be mysqli, null given
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    'C:\wamp\www\ocp\html\sources\minikernel.php'
Line    '192'
Function    'get_html_trace'
Args    

File    'C:\wamp\www\ocp\html\sources\minikernel.php'
Line    '274'
Function    'fatal_exit'
Args    

'PHP [2] mysqli_real_escape_string() expects parameter 1 to be mysqli, null given'

Function    'ocportal_error_handler'
Args    

2

'mysqli_real_escape_string() expects parameter 1 to be mysqli, null given'

'C:\wamp\www\ocp\html\sources\database\mysqli.php'

175

array ( 'string' => 'SHORT_TRANS', 'LAST_SELECT_DB' => NULL, )

File    'C:\wamp\www\ocp\html\sources\database\mysqli.p
hp'
Line    '175'
Function    'mysqli_real_escape_string'
Args    

NULL

'SHORT_TRANS'

File    'C:\wamp\www\ocp\html\sources\database.php'
Line    '190'
Function    'db_escape_string'
Class    'Database_Static_mysqli'
Object    Database_Static_mysqli::__set_state(array( ))
Type    '->'
Args    

'SHORT_TRANS'

File    'C:\wamp\www\ocp\html\sources\database\shared\m
ysql.php'
Line    '204'
Function    'db_escape_string'
Args    

'SHORT_TRANS'

File    'C:\wamp\www\ocp\html\sources\database.php'
Line    '105'
Function    'db_string_equal_to'
Class    'Database_super_mysql'
Object    Database_Static_mysqli::__set_state(array( ))
Type    '->'
Args    

'm_type'

'SHORT_TRANS'

File    'C:\wamp\www\ocp\html\sources\database.php'
Line    '48'
Function    'db_string_equal_to'
Args    

'm_type'

'SHORT_TRANS'

Function    'init__database'
Args    

File    'C:\wamp\www\ocp\html\install.php'
Line    '1,931'
Function    'call_user_func'
Args    

'init__database'

File    'C:\wamp\www\ocp\html\install.php'
Line    '965'
Function    'require_code'
Args    

'database'

File    'C:\wamp\www\ocp\html\install.php'
Line    '194'
Function    'step_5'
Args    

Version 4 3.0 RC2
ocPortal, created by ocProducts

ocPortal - where Content Management meets Web 2.0

Back to the top
 
Posted
Rating:
#56859
Avatar

Attachment
sources/database/mysqli.php
» Download: mysqli.php (9 Kb, 133 downloads so far)


Thanks. The above file hopefully will fix 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:
#56955
Avatar

Honoured member

Thank You Chris.

That fixed the issue, I've passed the installer.

Thx.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: