CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 New CCS Feature?

Print topic Send  topic

Author Message
mentecky

Posts: 321
Posted: 04/12/2010, 8:11 AM

I just upgraded my computer and loaded a project that has worked great in the past. It's not a terribly complicated project but does have custom code in some events.

So... now when I open the project ALL of my custom event code is missing. Even though I can open the *_events.php files in notepad++ and it's there and CCS has a custom code event handler. All I see where my code was is :

  
//Page_BeforeShow @1-67A59B42  
function Page_BeforeShow(& $sender)  
{  
    $Page_BeforeShow = true;  
    $Component = & $sender;  
    $Container = & CCGetParentContainer($sender);  
    global $switch_site; //Compatibility  
//End Page_BeforeShow  
  
//Custom Code @7-2A29BDB7  
// -------------------------  
    // Write your own code here.  
// -------------------------  
//End Custom Code  
  
//Close Page_BeforeShow @1-4BC230CD  
    return $Page_BeforeShow;  
}  

Where in the *_events.php it says:
  
//Page_BeforeShow @1-67A59B42  
function Page_BeforeShow(& $sender)  
{  
    $Page_BeforeShow = true;  
    $Component = & $sender;  
    $Container = & CCGetParentContainer($sender);  
    global $switch_site; //Compatibility  
//End Page_BeforeShow  
  
//Custom Code @7-2A29BDB7  
// -------------------------  
    global $Redirect;  
  
	CCSetSession("site_id", CCGetParam("site_id", "-1"));  
  
	$return_to = CCGetParam("return_to", "index.php");  
  
    // Don't allow us to return to maintenance pages  
	if (strpos($return_to, "journal_maint.php") === 0)  
	{  
	   $return_to = "index.php";  
    }  
  
	$Redirect = $return_to;  
// -------------------------  
//End Custom Code  
  
//Close Page_BeforeShow @1-4BC230CD  
    return $Page_BeforeShow;  
}  

WTF?!?!? Do I have to copy and paste EVERY custom code block to fix this????

Nice RAPID development tool... It's rapidly killing me!

Rick
_________________
http://www.ccselite.com
View profile  Send private message
Gena

Posts: 591
Posted: 04/12/2010, 8:34 AM

this happened to me too, also some IDE menu/text were vanished. YES me have suggested uninstall and install CCS again. Then all goes back without problem.
_________________
Gena
View profile  Send private message
Gena

Posts: 591
Posted: 04/12/2010, 8:38 AM

To resolve the IDE issue please try uninstalling CCS3 again, then use "regedit" program in Windows to delete the following registry directories:
HKEY_CURRENT_USER\Software\YesSoftware\CodeChargeStudio3
HKEY_LOCAL_MACHINE\SOFTWARE\YesSoftware\CodeChargeStudio3
Then install the latest CCS 3.2.0.2 version.
It should help.
_________________
Gena
View profile  Send private message
Gena

Posts: 591
Posted: 04/12/2010, 8:39 AM

that was YES replay to me, so you see about ver 3.
_________________
Gena
View profile  Send private message
mentecky

Posts: 321
Posted: 04/12/2010, 8:54 AM

Thanks Gena,

This is a clean install of 4.x.7676 on a clean install of Windows 7. I started with a totally clean machine then restored only my projects. By "Upgraded my computer" I meant replaced the hard drive, installed Windows 7 and installed CCS4. I just don't get it because the old drive had Windows 7 and the same version of CCS4 on it.

Rick
_________________
http://www.ccselite.com
View profile  Send private message
mentecky

Posts: 321
Posted: 04/13/2010, 1:49 AM

Well, here's the poop. It seems somewhere during an upgrade the file extension for the project got changed from ".php" to empty. This caused all the *_event.php files to be created without the ".PHP".

Changing the project file extension to ".php" and then opening each page in the project caused an error stating "Page changed by external process. Reload page?". Clicking "Yes" caused the page to reload with my event code.

I have no idea what caused the settings to change or what caused the code to come back after setting the file extension, but if this happens to you, this is how I fixed it.

Rick
_________________
http://www.ccselite.com
View profile  Send private message
datadoit
Posted: 04/13/2010, 8:01 AM

Rick please make sure you pop off to support your findings. It looks as
though the install barfs if something in Windows 7 (such as 'hide file
extensions for known file types') is or is not set.

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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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