icos-urenio / Improve-my-city

Improve my city allows citizens to report, vote and track non-emergency issues
Other
58 stars 37 forks source link

Error message after submiting an issue #106

Open ghost opened 11 years ago

ghost commented 11 years ago

Everything works fine exept I get an error every time a user submits an issue. The new issue is being stored in sql but I get this after sumbition: Fatal error: Call to a member function get() on a non-object in /MY_DIR/components/com_improvemycity/views/issues/view.html.php on line 122

I'm using a fresh install of Joomla 2.5.9 with yougrids template from youjoomla which has cache enabled.Cache is disabled in global configuration. In component configuration ACL is set to "Allow" under "Registered" users in "Create". And so it is as after submit the issue is being created in mysql. Any thoughts?

ghost commented 11 years ago

I found out that I CAN'T access the component with the address of the redirection: MY_SITE/index.php?option=com_improvemycity&view=issues I CAN access the plugin with this address which is being asigned to the menu item: MY_SITE/index.php?option=com_improvemycity&view=issues&Itemid=125

gpalmas commented 11 years ago

I have the same problem using Firefox and Chrome...

gpalmas commented 11 years ago

NEWS!!! I get the error ONLY if I set as home page the menu item used to display the component! I want to display Improve My City as the home page: if I do it I get the error, if no it works...

itsam commented 11 years ago

Other people also mentioned this... I will try to debug today and let you (all) know

-ioannis

On Sun, Mar 31, 2013 at 6:11 AM, gpalmas notifications@github.com wrote:

NEWS!!! I get the error ONLY if I set as home page the menu item used to display the component! I want to display Improve My City as the home page: if I do it I get the error, if no it works...

— Reply to this email directly or view it on GitHubhttps://github.com/icos-urenio/Improve-my-city/issues/106#issuecomment-15686003 .

ghost commented 11 years ago

Well, &Itemid=125 is in my case the a/a of the menu item used for joomla. This menu item is not set as frontpage. The problem is still there.

gpalmas commented 11 years ago

Thank you itsam. This is an awensome project! Great work! ;-)

webtuga1975 commented 11 years ago

I have the same problem, only happens if it is set as default page error: The website encountered an error while trying to get http://www.ideiasemateriais.com/component/improvemycity/issues. It may be down for maintenance or have been incorrectly configured. link: www.ideiasemateriais.com login: pedro pass: 123456

how can I fix??

webtuga1975 commented 11 years ago

I found the problem to be able to work on the home page. change line 73 in joomla components / com_improvemycity \ views \ addissue \ tmpl \ default.php 'index.php? com_improvemycity option = & view = issues' for 'index.php / issues'

llaporta commented 10 years ago

Hi, i haHi, i have the same problem, but, when the user submitted the issues, isn't appear into the database, and appear a white page and the url is "http://localhost/joomla/index.php/index.php?option=com_improvemycity&view=issues".

i tried with change the 73 line into default.php, like webtuga1975 said, but the problem continued.

I have: Sistema Operativo Centos 6.5 Aplicación PHP 5.3.3 Aplicación Apache 2.2.15 Aplicación PHPMyAdmin 4.1.X Aplicación Joomla 2.5 Aplicación Improve-My-City 2.5.6 Gestor de Base de Datos MySql 5.1.73

Please, help me with that problemve the same problem, but the submit issues it not apear

itsam commented 10 years ago

Could you please try to enable SEF in your joomla setup? On Jun 24, 2014 6:05 PM, "llaporta" notifications@github.com wrote:

Hi, i haHi, i have the same problem, but, when the user submitted the issues, isn't appear into the database, and appear a white page and the url is " http://localhost/joomla/index.php/index.php?option=com_improvemycity&view=issues ".

i tried with change the 73 line into default.php, like webtuga1975 said, but the problem continued.

I have: Sistema Operativo Centos 6.5 Aplicación PHP 5.3.3 Aplicación Apache 2.2.15 Aplicación PHPMyAdmin 4.1.X Aplicación Joomla 2.5 Aplicación Improve-My-City 2.5.6 Gestor de Base de Datos MySql 5.1.73

Please, help me with that problemve the same problem, but the submit issues it not apear

— Reply to this email directly or view it on GitHub https://github.com/icos-urenio/Improve-my-city/issues/106#issuecomment-46983111 .

llaporta commented 10 years ago

thanks for your attention, first i tried it and i reboot the apache server but nothing happened, so is when i decide to write into the community, but this afternoon i decide to reboot the server machine and after this the server is ok and everything works fine.

thanks for your attention, my apologize.