CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Login problem on PHP 7

Print topic Send  topic

Author Message
enko


Posts: 74
Posted: 05/08/2020, 6:16 AM

Converting the codecharge code to PHP 7.4.3 I have problems accessing reserved pages.
I can't log in and I have the following warning:
Warning: Illegal string offset 'OnClick' in C:\wamp64\www\test1\login_events.php on line 6
Has anyone solved this problem and know how to help me? Regard
_________________
Italy - CodeCargeStudio (5.1.1.18992) - Dephi RIO - Lazarus (Free Pascal) - www.egsoft.it - www.egauto.it - www.egcourier.it - www.egestetica.it - Windows, Linux, Raspberry Apps.
View profile  Send private message
jsuarez2

Posts: 19
Posted: 07/16/2020, 8:03 PM

Show the line 6 of the code...

Jose - https://pe.tablago.com/
_________________
https://cl.tablago.com/
View profile  Send private message
enko


Posts: 74
Posted: 07/16/2020, 9:29 PM

$Login->Button_DoLogin->CCSEvents["OnClick"] = "Login_Button_DoLogin_OnClick";
_________________
Italy - CodeCargeStudio (5.1.1.18992) - Dephi RIO - Lazarus (Free Pascal) - www.egsoft.it - www.egauto.it - www.egcourier.it - www.egestetica.it - Windows, Linux, Raspberry Apps.
View profile  Send private message
ccsminer

Posts: 159
Posted: 07/17/2020, 3:32 PM

Enko -

Unfortunately, this is just one of many errors to be encountered.

Have decided to just be patient and wait while a version of CCS is developed which truely supports PHP 7.x

In the meantime, CCS serves us well for PHP 5.x applications.
View profile  Send private message
enko


Posts: 74
Posted: 07/21/2020, 1:29 AM

Thank you
I can confirm that using conv_fnames.php up to PHP 7.1.26 CCS projects works in all
_________________
Italy - CodeCargeStudio (5.1.1.18992) - Dephi RIO - Lazarus (Free Pascal) - www.egsoft.it - www.egauto.it - www.egcourier.it - www.egestetica.it - Windows, Linux, Raspberry Apps.
View profile  Send private message
popularanky

Posts: 53
Posted: 08/18/2020, 4:25 PM

Quote enko:
$Login->Button_DoLogin->CCSEvents["OnClick"] = "Login_Button_DoLogin_OnClick";

Just declare as array at the top of the code line 6

$Login->Button_DoLogin->CCSEvents = ["OnClick"];

just copy this.
i hope it helps


_________________
EKERE UBONG UBONG
IT Officer
CognitiveDrive
View profile  Send private message
abhay_nakhate

Posts: 1
Posted: 09/13/2020, 5:27 AM

There are change in Classes.php and .php file what we need to do is replace var $CCSEvents=""; to var $CCSEvents = array(); and & new to new. search in entire project and do this. then all the errors related to illegal offset get resolved.
This is because of this variable defined as string and used as array.
View profile  Send private message
clickryan


Posts: 55
Posted: 09/13/2020, 3:44 PM

what I do before running conv_fnames.php,

- I clear the .php page/file (not the _events.php)
- generate new .php
- run conv_fnames.php
- test the page

I've tested in PHP 7 to 7.3
_________________
Codecharge Developer (PHP, ASP.net - C# or VB.net)
for help or inquiries please visit clickryan.com
View profile  Send private message
lucasleandrodemo

Posts: 15
Posted: 09/24/2020, 7:44 AM

in reality all events stopped working not only on the login screen from php 7.4
_________________
Lucas Leandro de Moura
lucasleandrodemoura@gmail.com
PHP Programmer
Estrela/RS - Brazil
View profile  Send private message
cleyan


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

I use https://github.com/cleyan/to7

All my code is working with php 7.4

regards

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

Posts: 48
Posted: 10/28/2020, 8:49 AM

i downloaded conv_fnames.php from https://github.com/cleyan/to7

but not sure what i need to do for PHP 7.4.
not able to find conv_fnames.php in CCS installation folder. do i need to replace the file in codecharge installation folder/project folder? or just need to copy the code function to common.php, Classes.php...etc??
View profile  Send private message
enko


Posts: 74
Posted: 10/29/2020, 2:58 AM



Try this tools that I developed for my project

https://www.egauto.it/ccstools/CCSTools.7z

Hope is usefull for you
_________________
Italy - CodeCargeStudio (5.1.1.18992) - Dephi RIO - Lazarus (Free Pascal) - www.egsoft.it - www.egauto.it - www.egcourier.it - www.egestetica.it - Windows, Linux, Raspberry Apps.
View profile  Send private message
oasisp

Posts: 48
Posted: 10/29/2020, 1:17 PM

Thank you enko. that works Great with PHP 7.4.11.
Quote enko:


Try this tools that I developed for my project

https://www.egauto.it/ccstools/CCSTools.7z

Hope is usefull for you
View profile  Send private message
enko


Posts: 74
Posted: 10/30/2020, 3:12 AM

Good.
I have build only the interface that help to run the GOOD conv_fnames.php script.
Thanks to
https://github.com/barakravid/codecharge_php7fix
https://github.com/cleyan/to7

_________________
Italy - CodeCargeStudio (5.1.1.18992) - Dephi RIO - Lazarus (Free Pascal) - www.egsoft.it - www.egauto.it - www.egcourier.it - www.egestetica.it - Windows, Linux, Raspberry Apps.
View profile  Send private message
dhvanishah2222

Posts: 1
Posted: 12/09/2020, 10:51 AM

Quote enko:
Converting the codecharge code to PHP 7.4.3 I have problems accessing reserved pages.
I can't log in and I have the following warning:
Warning: Illegal string offset 'OnClick' in C:\wamp64\www\test1\login_events.php on line 6
Has anyone solved this problem and know how to help me? Regard

_________________
Assisted SC / ST, freed bonded laborers and non-SC / ST categories below the poverty line under Indira Awas Yojana in the form of full grant for construction of houses and upgrading of existing idle kutcha houses. https://yojanamahiti.in/
View profile  Send private message
clickryan


Posts: 55
Posted: 12/09/2020, 3:56 PM

before running conv_fnames.php,

- I clear the .php page/file (not the _events.php)
- generate new .php
- run conv_fnames.php
- test the page

tested in PHP 7 to 7.3


Quote dhvanishah2222:
Quote enko:
Converting the codecharge code to PHP 7.4.3 I have problems accessing reserved pages.
I can't log in and I have the following warning:
Warning: Illegal string offset 'OnClick' in C:\wamp64\www\test1\login_events.php on line 6
Has anyone solved this problem and know how to help me? Regard


_________________
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: 12/11/2020, 10:20 AM

Quote oasisp:
Thank you enko. that works Great with PHP 7.4.11.
Quote enko:


Try this tools that I developed for my project

https://www.egauto.it/ccstools/CCSTools.7z

Hope is usefull for you
Please Guide me how to use, I tried a lot of times but not works for me
View profile  Send private message
enko


Posts: 74
Posted: 12/13/2020, 9:36 AM

what kind of problems did you find?
if you configure the paths correctly the program runs conv_fnames.php which fixes the code in the folder where ccs generates the web site (not remote ftp).
Once the code is fixed, you can copy it to your work environment.
It is a two-step job but the result is exceptional.
_________________
Italy - CodeCargeStudio (5.1.1.18992) - Dephi RIO - Lazarus (Free Pascal) - www.egsoft.it - www.egauto.it - www.egcourier.it - www.egestetica.it - Windows, Linux, Raspberry Apps.
View profile  Send private message
ccsminer

Posts: 159
Posted: 12/17/2020, 8:21 AM

Quote vasu:
Quote oasisp:
Thank you enko. that works Great with PHP 7.4.11.
Quote enko:


Try this tools that I developed for my project

https://www.egauto.it/ccstools/CCSTools.7z

Hope is usefull for you
Please Guide me how to use, I tried a lot of times but not works for me

A great modification would be to allow a wild card/list of files (i.e. clinics.php,treatments.php,patients*.php) to be specified in the GUI, which would then be passed on to conv_fnames74.php.

From previous postings, it then sounds feasible to copy these modified php files back into the CCS workspace. Is that correct? If so, that's a nice bonus of using this tool.

Will definitely consider using it for follow-on CCS projects. Thankyou. :)
View profile  Send private message
ccsminer

Posts: 159
Posted: 12/17/2020, 7:42 PM

Quote ccsminer:
Quote vasu:
Quote oasisp:
Thank you enko. that works Great with PHP 7.4.11.
Quote enko:


Try this tools that I developed for my project

https://www.egauto.it/ccstools/CCSTools.7z

Hope is usefull for you
Please Guide me how to use, I tried a lot of times but not works for me

A great modification would be to allow a wild card/list of files (i.e. clinics.php,treatments.php,patients*.php) to be specified in the GUI, which would then be passed on to conv_fnames74.php.

From previous postings, it then sounds feasible to copy these modified php files back into the CCS workspace. Is that correct? If so, that's a nice bonus of using this tool.

Will definitely consider using it for follow-on CCS projects. Thankyou. :)


Ran the convert against one of the sample CCS applications - looks good, and continued to work in PHP 5.6.40 :)

Noticed this code translation in Classes.php:

This code . . .

while ($blnResult && list ($key, $Parameter) = each ($this->Parameters))
{
if($Parameter->GetValue() === "" && $Parameter->GetValue() !== false && $Parameter->UseIsNull === false)
$blnResult = false;
}

Was translated to this code . . .

foreach( $this->Parameters as $key=>$Parameter) {
if(!$blnResult)
continue;
if($Parameter->GetValue() === "" && $Parameter->GetValue() !== false && $Parameter->UseIsNull === false)
$blnResult = false;
}
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.

MS Access to Web

Convert MS Access to Web.
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.