function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
FilippFilipp 

CMSForce 2 installation error

Hi,

 

When i try to installa the CRMForce 2 to my salesforce account i get the following error notification via e-mail.

 

What seems to be the error? I can't install CRMForce 2

 

Problem:

1. Apex Classes(01p200000003dCm) cmsforcesetupcontroller.t1()
System.AssertException: Assertion Failed
Class.CMSForceSetupController.t1: line 94, column 3
External entry point

2. Apex Classes(01p200000003dCv) homepagecontroller.t1()
System.NullPointerException: Attempt to de-reference a null object
Class.HomePageController.t1: line 69, column 51
External entry point



Validation Errors While Saving Record(s)

There were custom validation error(s) encountered while saving the affected
record(s). The first validation error encountered was "00D20000000IjTj:
APEX_TEST_FAILED [01p200000003dCm: cmsforcesetupcontroller.t1():
System.AssertException: Assertion Failed
Class.CMSForceSetupController.t1: line 94, column 3
External entry point, 01p200000003dCv: homepagecontroller.t1():
System.NullPointerException: Attempt to de-reference a null object
Class.HomePageController.t1: line 69, column 51
External entry point]".
Best Answer chosen by Admin (Salesforce Developers) 
David VPDavid VP

At least one Site needs to be active when installing (see also the manual on the AppX listing page).

 

For the second issue you have 2 possible options :

 

- install with 'ignore test failures' checked

- install from this link : http://bit.ly/hu22dz (= a patched CMSForce2 version where I've commented out the offending test line)

 

Hope this helps & Let me know if it works.

 

David

All Answers

FilippFilipp

Hi,

 

I got the first error sorted out by changing the sites settings to active in the sites setup. I still got a following error.

 

Problem:

1. Apex Classes(01p200000003dES) homepagecontroller.t1()
System.NullPointerException: Attempt to de-reference a null object
Class.HomePageController.t1: line 69, column 51
External entry point



Validation Errors While Saving Record(s)

There were custom validation error(s) encountered while saving the affected
record(s). The first validation error encountered was "00D20000000IjTj:
APEX_TEST_FAILED [01p200000003dES: homepagecontroller.t1():
System.NullPointerException: Attempt to de-reference a null object
Class.HomePageController.t1: line 69, column 51
External entry point]".

 

David VPDavid VP

At least one Site needs to be active when installing (see also the manual on the AppX listing page).

 

For the second issue you have 2 possible options :

 

- install with 'ignore test failures' checked

- install from this link : http://bit.ly/hu22dz (= a patched CMSForce2 version where I've commented out the offending test line)

 

Hope this helps & Let me know if it works.

 

David

This was selected as the best answer
FilippFilipp

Thanks,

 

That helped a lot.

rnowackirnowacki

worked for me too!

Ben_JonesBen_Jones

David,

 

I have a similar situtation, however I originally checked to ignore errors.  I have already deployed a site where I haven't seen any problems and don't want to reinstall.

 

However, a consultant is trying to do a deployment for some custom work and HomePageController is reporting an error and not allowing the deployment.  Can part of this code be commented out?

David VPDavid VP

Use the install link in my post on 26/1. That package has the offending line of test code commented out.

Ben_JonesBen_Jones

Thanks for the quick reply.  Can I install that on top of my current install without it breaking anything?

David VPDavid VP

No you can not install that on top of an existing install.

If you already have it installed why do you need to install again ? If you still have CMSForce version 1 then you'll have to export your current content, uninstall, install CMSForce2 and import your content with something like dataloader. You also have to manually add folders and link your content you'll import to these first in your source data. This is not for the faint of heart so only do this if you're very comfortable with the force.com platform and try it in a sandbox or dev environment first. You could end up messing up your site so don't do this directly in production.

diegooteguidiegootegui

Hi

I have just installed the app. I have about 10 active sites and we have hundreds of pages already. I am followin the installatino guide and almost at the beggining it says:

Go to the app ‘CMSForce’ and to the tab ‘CMSConsole’.
The first time you do this, CMSForce will ask you to fill in the url (including suffix) of your Site(s). You’ll
also need to indicate via which Salesforce url you access Salesforce.

when I do this the page where I have to type in all the urls appear but in edditing mode.. the same mode as when I edit a visualforce page and the save button is just NOT there. the cmsConsole doesn´t oppen.. i try to go to the app but this page oppens.. what am i doing wrong?

screen capture