⚠ 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

Add/Edit buttons have wrong URL due to a "question mark"



sonerdemiray
  • profile picture
  • Member

Posted 05 July 2013 - 21:03 PM

Hi,

 

All of the add/edit buttons on my table have wrong url due to a question mark which is been added right after the base url like this:

 

http://localhost/easymix360/?crudTest/index/edit/5

 

How can I get rid of this question mark?

 

Thanks in advance.

 

Soner

 

 

 

 


davidoster
  • profile picture
  • Member

Posted 05 July 2013 - 23:12 PM

Hello and welcome to the forums [member=sonerdemiray].

Probably you are trying to get rid of the index.php and somwhere along the line you missed something.

Check again the rewrite rules you have for your webserver configuration.


Amit Shah
  • profile picture
  • Member

Posted 06 July 2013 - 06:09 AM

i agree with david .. you may have removed the index.php from config.php in codeigniter and that is what possibily is getting the issue


sonerdemiray
  • profile picture
  • Member

Posted 06 July 2013 - 12:15 PM

Hi guys,
 
Thanks for replying.
 
When I've got all of my rewrite rules turned off (commented out) and index_page set to 'index.php', the buttons still points out to a wrong URL:
 
 
causing to redirect to home controller instead of crusTest.
 
The valid URLs are: 
http://localhost/easymix360/index.php/crudTest/index/edit/1   (without ?)
OR
http://localhost/easymix360/index.php?/crudTest/index/edit/1    (or with a slash / beside ?)
 
Thanks again.
 
Soner

 


davidoster
  • profile picture
  • Member

Posted 06 July 2013 - 14:48 PM

That's interesting.

Check again all of the configuration.

Restart the webserver to make sure that the changes are correctly propagated.

 

It might worth sharing your configuration files with the CodeIgniter's forum or in Apache forums to help you out.


davidoster
  • profile picture
  • Member

Posted 06 July 2013 - 14:52 PM

Question: Is it only the add/edit buttons that get this question mark? All the rest of the links are ok?

Maybe you're using some kind of modified (or extended) version of Grocery CRUD that has errors (like this)?

If you download and run the samples/examples that come with the library itself do you get the same question mark (?) on add/delete button?


dario
  • profile picture
  • Member

Posted 30 October 2014 - 15:30 PM

Hello everyone! I have exactly the same problem. Anyone know of a possible solution?
Of course, I've tried everything mentioned here.
thank you

dario
  • profile picture
  • Member

Posted 31 October 2014 - 01:40 AM

Hi guys.
I have solved the problem with a modification to the config.php file.
Set $ ​​config ['allow_get_array'] and config ['enable_query_strings'] to false.
I hope it helps someone.

 

Espero que le sirva a alguien ... Saludos!
Dario