I reinstalled CF, and now I see the package listed...
# adobe
a
I reinstalled CF, and now I see the package listed as installed but still getting the message that Ajax package is not installed. This works fine in a commandbox server with CF2021
message has been deleted
m
Angel, can I have you post this as a bug? I was running into this myself also, with a different package, but I was unable to reproduce it once I got an engineer to look at it. If you can repro it I'd love to get this bug fixed.
BTW the way I got it to work was restarting the server, though seemingly after a couple times, the issue went away in my case...
a
Mark, I will try to replicate it and document it to post it as a bug.
1
m
Appreciate it Angel! Let me know the ticket number and I will vote it up.
a
Mark, I found that the issue appears when you install ColdFusion Standard and activate it with the license key during installation. To solve this, I installed ColdFusion as developer, with that the bug didn't appear, then after testing and configuring I put the license in the Licensing and Activation section in the CF Admin, and I've not seen the bug again.
So this bug is specifically with CF Standard, makes sense why it worked with Commandbox, because it uses the Enterprise version
m
Wow... that's a weird one. CCing @priyank_adobe on this one for visibility, Priyank have we seen this occurring elsewhere?
p
Can you clear the felix-cache and try again. \ColdFusion2021\cfusion\bin\felix-cache
a
@priyank_adobe I don't have the bug anymore after installing first as a Developer edition, but first I needed to Deactivate the license, delete the ColdFusion2021 folder that is not deleted when you uninstall CF, and delete the Windows registry records regarding ColdFusion. I did cleared the felix-cache when I was trying to fix it though. So if you install ColdFusion and during the installation you put the License Key (Standard Version) and continue, after the installation then if you use CFGRID tag you will see the issue showed in the beginning of this thread. But if you install as a Developer Edition or Trial Enterprise (Commandbox) which installs all the features I assume, you won't see the bug.
p
there is no limitation of using the cfgrid in Standard edition. I will try the steps and see if the is reproducible at my end.
a
Ok, but I don't think the cfgrid itself is the issue, but the Ajax Package that is used by cfgrid in my case, if you see in one of the screenshots I provided, the Ajax package shows as installed in the CFPM CLI but the cfm page that uses cfgrid throws an error saying that the Ajax Package is not installed. Then if you uninstall the Ajax package and try to install it again you will see in the CF log this
Feb 10, 2022 044545 AM Error [Thread-62] - An error has occurred while installing the package ajax. Exception : Script folder C:\ColdFusion2021\cfusion\wwwroot\cfscripts not found. Ajax package has been downloaded at C:/ColdFusion2021/bundles/ajax-2021.0.02.328618.zip. If you have created a mapping of cf_scripts folder, you can copy the contents of the downloaded zip into CF_SCRIPTS/scrips/ajax folder
Feb 10, 2022 044545 AM Information [Thread-62] - Uninstalling the package ajax
p
Thanks Angel, I got it. I will update once I try this.
a
Doing further investigation, the Ajax package fails to install when the default server ScriptSrc path is missconfigured. The issue rised when I used commandbox cfconfig tool to import the settings from the previous server. That server has cfscripts as the path. Please dismiss this as a bug. Thank you for your time and my apologies.
@Mark Takata (Adobe) @priyank_adobe Coming back to this issue, I was following the instructions to lock down the CF server by changing the default scripts directory in the CF Admin, I created a virtual directory in IIS ie. /cfscripts/ which points to the directory where cfform.js lives, if I browse a file from that directory for example cfforms.js, the file can be accessed just fine, however when I change _/cf_scripts/scripts/_ for /cfscripts/ in the CF Admin, the pages with CFGRID stop working
This is the error I get. With the default configuration of /cf_scripts/scripts/ the page works fine. I don't use CF tags that create UI interfaces In my projects but this is an old project I got for maintenance and it uses the CFGRID tag heavyly.
p
@Angel Chrystian Let me try this and get back to you.