Salesforce: Internal Server Error - salesforce

I have a visualforce page which is rendering correctly. There is a commandbutton "Save" which executes some DML statement and redirects to some other page. This functionality was working fine earlier. Since yesterday, on click of the "Save" button, i am getting this error :
An internal server error has occurred
An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact Salesforce Support. Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience.
Thank you again for your patience and assistance. And thanks for using salesforce.com!
Error ID: 471693248-7806 (-1751278023)
I am not able to find out what is the cause of this error. I even tried commenting out all the code in the method called by Save button. Still, i am getting this error. What can be the cause of this type of error?

This could be caused by something else in your code not related to the Save button. Start by commenting everything out in your controller/extension and save it that way. Then property by property, and method by method un-comment sections; save each time, and review your page. That will give you a better idea where the error occurred. If that doesn't work, call your Salesforce support number.

Since you've already tried commenting out your code to no avail, try changing and re-saving the associated .meta file for your class file.
So if your file ClassName.cls-meta.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>20.0</apiVersion>
<status>Active</status>
</ApexClass>
Try changing the API version number and re-saving:
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>23.0</apiVersion>
<status>Active</status>
</ApexClass>
Also, check to see that your class is listed as both Active and Valid in Name|Setup|Develop|Apex Classes.
Further, your org may have just received its spring upgrade over the weekend and could actually be seeing a genuine Salesforce bug! Log a case and have them troubleshoot it if so.
Good luck

Related

Devices created with smart-home-java sample always offline

I have created a couple of devices using the https://github.com/actions-on-google/smart-home-java sample project. I have also successfully linked my account and see these devices in my Google Home app. I am also able to click on a "On" or "Off" button next to the Lamp device, and I see the value change in Firestore.
However, when I click on the device it says "Not responding" on the top and "Offline" in the middle of the screen. I do not see any errors in the "smart-home-java" server logs.
Has anyone else experienced something similar? How should I approach debugging this?
As mentioned briefly in the comments, this is likely because your project is failing to successfully call Report State. The most likely cause of this is that your Home Graph API credentials are missing or incorrect.
In the current sample code, an error in this method call will cause the handler to return deviceOffline from a QUERY. You can also comment out or remove this line to debug the issue.

ExtJS: Loading store produces "entityType is null" error in browser log

I'm using a button click to change a store's AJAX proxy URL and then .load()ing with the new URL.
The request is made properly and I see that the response is correct. However, the gridpanel that's supposed to load stays empty (saying "loading...") and the error entityType is null appears in the browser log.
It's a cryptic error and have no idea what's wrong. Any help would be greatly appreciated.
I figured out the issue. In Sencha Architect, I'd created a store of type Ext.data.JsonStore. Deleting it and creating a plain-old Ext.data.Store type solved the problem.

Not able to save settings in phpList admin panel

I am integrating phpList into my website. I initialized database.
I was able to integrate my website with phpList.
In admin panel whenever i try to do anything like delete member from subscriber list or change any setting for subscriber page. I am getting this error "The requested URL /index.php was not found on this server."
I know that this is the problem of path.
When user receives email it says to confirm click on this.
http://admin.ridesharebuddy.com/lists/?p=preferences&uid=TOKEN
When user clicks on this, it displays error page not found.
Because path should be something like this.
http://admin.ridesharebuddy.com/rideshare/lists/?p=preferences&uid=TOKEN
How can i change this path ?
So from what I see, you have 2 issues:
Firstly:
index.php is not being found.
This is generally because of a) an upload error, or b) missing directory traversals within the script (../../ etc..)
What we need to know is why index.php is not found, and why it is being called when you try to make a change
Secondly:
The link generated when the email is sent, is incorrect. This will just be a case of finding where the link is generated, and modifying it to generate a correct code.
If you could update the post with source for the files, then I may be able to help you further.
If you feel you can't do the above, then I suggest using a different, more mature (and better coded), mailing script for your site.

Add bug to Bugzilla via code

I'm using browser-like approach for adding a bug to Bugzilla.
I'm making a successful login. When I add the bug, I don't get error. I get status code OK. But, the response html contains this:
Bugzilla – Suspicious Action
"It looks like you didn't come from the right page (you have no valid token for the create_bug action while processing the 'post_bug.cgi' script). The reason could be one of:
You clicked the "Back" button of your web browser after having successfully submitted changes, which is generally not a good idea (but harmless).
You entered the URL in the address bar of your web browser directly, which should be safe.
You clicked on a URL which redirected you here without your consent, in which case this action is much more critical.
Are you sure you want to commit these changes anyway? This may result in unexpected and undesired results."
There is a confirm button.
When I do this by hand (not by code), I don't get the error page. Instead, I get response that everything went fine and I can get my bug's id. So, ahead in my code I'm using the id. However, because of the error I get, the id is an empty string. How to resolve this?
Can it be resolved by clicking on the confirm button by code?
You can use Bugzilla's REST API from your script.
Creation of a bug is documented here

custom cakephp error messages not showing

I have created a custom page for error messages in my web application.
I have created these two files in the views/errors/ directory named 'missing_action.ctp' and 'missing_controller.ctp'.
On server the error message is shown as follows:
and on localhost the error is shown properly like as follows:
I want to show the error messages exactly as that of on localhost but it is not appearing on server. What can be the problem.?
Glad this worked out for you. :)
Is it safe to assume those file were put in the app/ directory? Is the code EXACTLY the same on both installations?
Something to remember: CakePHP might have cached the previous page. Make sure your debug value is set to 1 or 2 in app/config/core.php to disable caching.

Resources