CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Illegal string offset 'BeforeShow' and Dynamic Menu not working

Print topic Send  topic

Author Message
vasu

Posts: 9
Posted: 09/18/2020, 2:05 AM

code is developed in PHP 5x version but not working in PHP 7x version, for that i modifed in .php and common.php files like
for changed code from // $values = ''; to $values = array(); in all .php files except event.php and also in commnon.php

and also changed the code in common.php like

// $values[] = array($bound_column_value, $db->f($text_column)); to
array_push($values,array($bound_column_value, $db->f($text_column)));

now i'm facing the issue like

Warning: Illegal string offset 'BeforeShow' in C:\xampp\htdocs\admin\dashboard_events.php on line 10
Warning: Illegal string offset 'BeforeShow' in C:\xampp\htdocs\admin\dashboard_events.php on line 11
Warning: Illegal string offset 'BeforeShow' in C:\xampp\htdocs\admin\dashboard_events.php on line 12
Warning: Illegal string offset 'BeforeShow' in C:\xampp\htdocs\admin\dashboard_events.php on line 13

and dynamic menu also not working getting blank screen
//MasterPage_dynamic_menu_BeforeShow @26-64943125
function MasterPage_dynamic_menu_BeforeShow(& $sender)
{
$MasterPage_dynamic_menu_BeforeShow = true;
$Component = & $sender;
$Container = & CCGetParentContainer($sender);
global $dynamic_menu; //Compatibility
//End MasterPage_dynamic_menu_BeforeShow

//Custom Code @27-2A29BDB7
// -------------------------
// Write your own code here.
// -------------------------
//if(CCGetSession('GroupID')== 1 )


if(CCGetSession('GroupID',0)==1) //Admin
{
$Component->Setvalue(' <br><ul class="nav in" id="side-menu"><li><a href="dashboard.php" id="dashboard"><i class="fa fa-dashboard fa-fw"></i> Admin Dashboard</a></li>');


}
else if(CCGetSession('GroupID',0)== 2 )
//Executive

$Component->Setvalue(' <ul class="nav in" id="side-menu"><li><a href="dashboard.php" id="dashboard"><i class="fa fa-dashboard fa-fw"></i> CC Dashboard</a></li>');


else if(CCGetSession('GroupID',0)== 5 )
//sales

$Component->Setvalue(' <br><ul class="nav in" id="side-menu"><li><a href="dashboard.php" id="dashboard"><i class="fa fa-dashboard fa-fw"></i> TeamLead Dashboard</a></li>');


//End Custom Code

Please someone help me
View profile  Send private message
clickryan


Posts: 55
Posted: 09/19/2020, 6:54 PM

try this:

- clear the code of .php (not the _events.php)
- generate the page
- before running the php7 conversion


_________________
Codecharge Developer (PHP, ASP.net - C# or VB.net)
for help or inquiries please visit clickryan.com
View profile  Send private message
vasu

Posts: 9
Posted: 09/28/2020, 6:34 AM

Quote clickryan:
try this:

- clear the code of .php (not the _events.php)
- generate the page
- before running the php7 conversion


not working for me please help someone
View profile  Send private message
Ganesan

Posts: 25
Posted: 10/14/2020, 7:33 AM

In Common.php, go to the function CCGetListValues(....) then change the $values = ""; to $values = [];
save, upload and try.

View profile  Send private message
cleyan


Posts: 136
Posted: 10/24/2020, 2:37 PM

Hi
I made some modifications to conv_fnames.php to make code compatible until php 7.4
You can find in https://github.com/cleyan/to7

regards

Carlos
_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.