⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

error code:500 in $crud->render() function



ashish
  • profile picture
  • Member

Posted 07 August 2013 - 13:10 PM

Dear Sir,

          I use this crud since last 6 months but theres no issue occur while renderring. But right now when i call the function to show the datatables it shows me server error:500. When I  commented to line "$crud->render()" then it shows me blank. Sir please help me with this problem as soon as possible. 


davidoster
  • profile picture
  • Member

Posted 07 August 2013 - 21:52 PM

You must have changed some code that makes the application unstable.

Backtrack your changes to see what is causing the problem.

Check also the appache error log.

 

P.S. I think you solved it if I can understand correctly. http://navigatortest.softsystems.in/index.php/operator/courses


ashish
  • profile picture
  • Member

Posted 08 August 2013 - 05:59 AM

Sir there's no changes in code done by me.Also I change the code with my backup when it works fine.When I check the apache error log file , there's not showing anything. Again I want to tell you that for mozilla firefox user it shows blank white screen and for google chrome user it shows the error like in screenshot.

    Sir,please let me know what's the problem. One thing I want to ask you that Is there problem from server hosting to deprecate any method. Also there's many user use the site as a data entry portal.

 

Please help me as early as possible to come out from this issue. 


davidoster
  • profile picture
  • Member

Posted 08 August 2013 - 06:26 AM

Well, if this was working and now it doesn't for sure something has changed!

Is there somebody else that has access to the source code that might have changed it?

Otherwise check with the hosting company!

 

Please share the controller function for this, http://navigatortest.softsystems.in/index.php/operator/courses

so we can check the actual code.

 

But again I need to tell you that when a non logged in user opens the previous link there isn't  a 500 error where it should be!

This is what I see when I browse it,

Screenshot_2.png


ashish
  • profile picture
  • Member

Posted 08 August 2013 - 09:31 AM

Dear Sir, right now it shows me white blank screen when I click it on courses.

     Sir, Can you help me on how to  show custom error in webpage.Actually when I talked to hosting company then they told me to show custom error in webpage so that I got the actual problem.


ashish
  • profile picture
  • Member

Posted 08 August 2013 - 09:33 AM

Sir can you tell me where's the render function define???


davidoster
  • profile picture
  • Member

Posted 08 August 2013 - 09:40 AM

follow the instructions here, /topic/1660-remember-to-use-the-codeigniter-manual/

and contact the developer of the project!


ashish
  • profile picture
  • Member

Posted 08 August 2013 - 12:23 PM

Dear Sir, 

          Thanks for your reply but my problem not solve yet. Again I get some new issue about what is happen. When I comment any line of render function define in codeigniter grocery_crud library then it shows me error related to that line. Again when uncomment that line it shows me table of crud means working when I refresh that page then its again show me blank white screen.

     If you know anything please let me know. 


davidoster
  • profile picture
  • Member

Posted 09 August 2013 - 03:29 AM

Share the code. Otherwise noone can help you.


ashish
  • profile picture
  • Member

Posted 09 August 2013 - 18:27 PM

Sir there's nothing extra and different in my code. Everything is of grocery crud function libraries and all. I found exact error when I backtrace the code.

 Error is Fatal error: Call to undefined method grocery_CRUD::getStateCode() in /home/softsyst/public_html/subdomains/navigator_test/navigator/application/libraries/grocery_crud.php on line 3878

   But getStateCode function define in library it call before refresh well but after refresh it shows error like this. What should I do??please help me out. if you want coding just ask what should I share.


davidoster
  • profile picture
  • Member

Posted 09 August 2013 - 20:21 PM

From what I see you're using version 1.3.3.

On this version line 3878 is a blank line!!!

OxgoUSX.png

So you use a modified version of Grocery CRUD.

Check with the person that did the changes.

Sorry we can't help.


ashish
  • profile picture
  • Member

Posted 09 August 2013 - 21:39 PM

Ok I send you the exact try to help me. It works from last 6 months but from thre days I face this issue try to solve it sir. Thanks in advance.

When ifirst enter into code it works correct but when I refresh it shows me error like:Fatal error: Call to undefined method Grocery_CRUD::getStateCode() in /home/softsyst/public_html/subdomains/navigator_test/navigator/application/libraries/Grocery_CRUD.php on line 4211

 Code 1: from where it call:

code3.jpg

 

Code 2:grocery grud library file

code1.jpeg


ashish
  • profile picture
  • Member

Posted 09 August 2013 - 21:42 PM

code 2 image:

code4.jpg


ashish
  • profile picture
  • Member

Posted 09 August 2013 - 21:43 PM

If you want login credentials then please ask me???


davidoster
  • profile picture
  • Member

Posted 09 August 2013 - 21:47 PM

This is insane! First you say the error is on line 3878 and then on the line 4211!!!

Did you mix and match versions???

I am sorry I can't help you anymore! Maybe somebody else.


ashish
  • profile picture
  • Member

Posted 10 August 2013 - 05:35 AM

no sir as you told me to upgrade the version so I upgrade it . And the method where the errror occur its define in line 4211 in new grocery crud library file.The method is shown to you.If I done some changes before that code then its line no. get change as the position of that function also change.

 

Sir, problem only with getStateCode() function wherever it from it is call it shows that line no. How should I understand ?? may you get it my problem.

 

Sir,Please help me with this.


davidoster
  • profile picture
  • Member

Posted 10 August 2013 - 07:48 AM

no sir as you told me to upgrade the version so I upgrade it . 

 

I never told you to upgrade!


ashish
  • profile picture
  • Member

Posted 11 August 2013 - 01:10 AM

Yes Sir,I gone through our conversation and You are not told me to update the library file but I thought may be I solve problem by updating the library. Sorry for all. But Sir please help me to sort out these problem. Ask anything

ashish
  • profile picture
  • Member

Posted 11 August 2013 - 01:11 AM

please !!! please!!! please!!!


davidoster
  • profile picture
  • Member

Posted 11 August 2013 - 22:32 PM

This topic is closed. Follow its progress here.