Error 500: Internal Server Error

1,362 views
Skip to first unread message

carlos

unread,
May 20, 2009, 8:02:19 AM5/20/09
to siwapp-users
This discussion tries to resolve those incidents relating to error 500
messages which may occur because of some installation errors, given
the paucity of documentation in this alpha stage.

1. ..../web/templates/default.php] could not be opened to write data.

This error says something about Temper.php. This error is raised when
you try to print as HTML, send by email or save as PDF one or more
invoices from any location on the app. Well this is a file system
permissions error. You only have to allow your server to write into
the /web/templates folder inside your siwapp installation. That's all!

Remember that there are some directories that must be writable by the
server (and you must create if they don't exist):

/cache
/log
/web/templates
/uploads/*

(to be continued...)

RDON

unread,
May 25, 2009, 2:06:17 AM5/25/09
to siwapp-users
Hi i am getting this error,

symfony PHP Framework
page not found
Oops! An Error Occurred
The server returned a "500 Internal Server Error".

Something is broken
Please e-mail us at [email] and let us know what you were doing
when this error occurred. We will fix it as soon as possible. Sorry
for any inconvenience caused.
What's next

* Back to previous page
* Go to Homepage

I am not sure that i have installed as per instruction because i have
a host that, i think, does not give me access to the Apache user
perms.
I am using site5.com hosting. anyone else had trouble setting this up
on an external host?

What i did using the roughInstallGuide at
http://dev.siwapp.org/projects/siwapp/wiki/roughInstallGuide
step one was fine, met all Requirements
step two, download and unpack was ok, I set perms on folders for all
to have be writeable. access to Apache's user not possible?
step three Configure your web server, this is where i also had
trouble, my host has a custom webAdmin interface... can I access a
file to do this?
step four configure the database, this went fine.
step five Go crazy with symfony tasks, all executed ok.

I do see the login page but thats all. i get the server 500 message
when i try to login.

thanks.

Enrique

unread,
May 25, 2009, 4:13:39 AM5/25/09
to siwapp-users
try this:

1. Comment (write // at the beginning of each line) the following
lines on web/siwapp_dev.php file:

if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')))
{
die('You are not allowed to access this file. Check '.basename
(__FILE__).' for more information.');
}

2. Acces with your browser to: http://yourhost.com/siwapp_dev.php
This time the page must be more explicit about the error.

On May 25, 8:06 am, RDON <rhys.donald...@gmail.com> wrote:
> Hi i am getting this error,
>
>  symfony PHP Framework
> page not found
> Oops! An Error Occurred
> The server returned a "500 Internal Server Error".
>
> Something is broken
>     Please e-mail us at [email] and let us know what you were doing
> when this error occurred. We will fix it as soon as possible. Sorry
> for any inconvenience caused.
> What's next
>
>         * Back to previous page
>         * Go to Homepage
>
> I am not sure that i have installed as per instruction because i have
> a host that, i think, does not give me access to the Apache user
> perms.
> I am using site5.com hosting. anyone else had trouble setting this up
> on an external host?
>
> What i did using the roughInstallGuide athttp://dev.siwapp.org/projects/siwapp/wiki/roughInstallGuide

jorge...@gmail.com

unread,
May 25, 2009, 6:17:20 PM5/25/09
to siwapp-users
I also got this same problem. After following those 2 steps I can
login and everything seems to work well.

Might this be an apache configuration and/or OS specific bug?

Enrique

unread,
May 26, 2009, 3:53:29 AM5/26/09
to siwapp-users
that is very strange. Can you login with siwapp_dev.php but not with
index.php?

On May 26, 12:17 am, "jorge.g...@gmail.com" <jorge.g...@gmail.com>
wrote:

jorge...@gmail.com

unread,
May 26, 2009, 5:46:14 AM5/26/09
to siwapp-users
yes. i login with siwapp_dev.php and everything works, except for the
pdf functions.

its.s...@gmail.com

unread,
Jun 4, 2009, 8:38:28 PM6/4/09
to siwapp-users
I have the same issue, if I login w/ siwapp dev everything is fine.

I get a 500 error when i try to add a new invoice though.




On May 26, 4:46 am, "jorge.g...@gmail.com" <jorge.g...@gmail.com>
wrote:

Jason

unread,
Jun 30, 2009, 10:50:42 PM6/30/09
to siwapp-users
I also get this issue. Can login with the dev php file thing but not
index.php. I followed install and httpd.conf with my subdomain and
the /sf alias are all set and working. .htaccess is in the root of the
web folder of course and nothing has been touched.

Must be something in the index.php?

Jason

unread,
Jun 30, 2009, 10:56:22 PM6/30/09
to siwapp-users
Ugh, this was so simple but I still don't know what I really affected
code wise - LOL. This should fix the 500 error for those who have
successfully followed the install provided by the developer.

Basically, I compared the index.php and siwapp_dev.php files since I
could in fact use siwapp_dev.php to login. The only difference I saw
in addition to the php code which denies users access to the file via
the web was this:

DEV FILE LINE: $configuration =
ProjectConfiguration::getApplicationConfiguration('siwapp', 'dev',
true);

INEX.PHP LINE: $configuration =
ProjectConfiguration::getApplicationConfiguration('siwapp', 'prod',
false);

In the index.php file all I did was change false to true (matching the
dev php file) and login magically worked. I still have not messed
around more but that simple edit to index.php did the trick for me.

Hope this helps...

Jason

Leonardo Gala Echemendía

unread,
Jul 1, 2009, 8:57:26 AM7/1/09
to siwapp...@googlegroups.com
Hi Jason. In siwapp_dev.php that line means that the 'developper' mode is on
In index.php the line you changed means that the 'production' mode were off.

So, you guess it right :)

Happy testing!

Leo.

2009/6/30, Jason <jhan...@gmail.com>:

Val Root

unread,
Aug 16, 2009, 7:47:48 PM8/16/09
to siwapp-users
The same issue, everything is ok under dev mode, but if ran index.php
file - 500 error :(

the logs are ok, only info reports.

Any ideas?

P.S> I have reinstalled it twice =\

On 1 июл, 15:57, Leonardo Gala Echemendía <galec...@gmail.com> wrote:
> Hi Jason. In siwapp_dev.php that line means that the 'developper' mode is on
> In index.php the line you changed means that the 'production' mode were off.
>
> So, you guess it right :)
>
> Happy testing!
>
> Leo.
>
> 2009/6/30, Jason <jhanes...@gmail.com>:

Val Root

unread,
Aug 16, 2009, 8:16:08 PM8/16/09
to siwapp-users
Ok, I found a solution

I cleared the cache :-D

php symfony clear-cache

:)

now....what to do with
===
The template "InvoicePageSuccess.php" does not exist or is unreadable
in "".
===

Any ideas?

Here is log output:
===============
Aug 16 19:05:58 symfony [info] {sfPartialView} Render "/home/payinv9/
apps/siwapp/modules/print/templates/_head.php"
Aug 16 19:05:58 symfony [info] {sfPartialView} Render "/home/payinv9/
apps/siwapp/modules/print/templates/_foot.php"
Aug 16 19:05:58 symfony [info] {printActions} Change template to
"CURRENT/InvoicePage"
Aug 16 19:05:58 symfony [info] {sfPHPView} Set component
"searchForm" (search/form)
Aug 16 19:05:58 symfony [err] {sfRenderException} The template
"InvoicePageSuccess.php" does not exist or is unreadable in "".
===============

$war

unread,
Aug 18, 2009, 8:44:40 AM8/18/09
to siwapp-users
Getting Error 500: Internal Server Error when clicking on "save and
send by email" option for any invoice.
It is working perfectly on Local machine but giving this error when
hosted in production server.....!!

URL : siwapp/web/invoices/update/id/1
I checked the response and POST values....those are identical in both
the servers....!!!
What can be the problem???

Enrique

unread,
Aug 18, 2009, 11:08:33 AM8/18/09
to siwapp-users
try to put the system in debug mode, following this
http://dev.siwapp.org/projects/siwapp/wiki/activateDebugging
and give us the exception message.

Swarnendu De

unread,
Aug 18, 2009, 12:38:31 PM8/18/09
to siwapp...@googlegroups.com

Hi,

    Enabling debugging mode shows the following error when clicking on "save and send email" option...!! That is, it can not show the template as getting 500 Server error.

To be noted, while creating a new invoice, the same action does not give any error... Problem comes only when I am editing and then trying to save the invoice - and obviously data does not get saved (however, the mail function is not working in both the cases).


ERROR:


500 | Internal Server Error | sfRenderException

The template "InvoicePageSuccess.php" does not exist or is unreadable in "".

stack trace

  • at ()
    in SF_ROOT_DIR/lib/vendor/symfony/lib/view/sfView.class.php line 374 ...
      1.       }
      2.       else
      3.       {
      4.         throw new sfRenderException(sprintf('The template "%s" does not exist or is unreadable in "%s".'$this->template$this->directory));
      5.       }
      6.     }

  • at sfView->preRenderCheck()
    in SF_ROOT_DIR/lib/vendor/symfony/lib/view/sfPHPView.class.php line 169 ...
      1.     if (is_null($content))
      2.     {
      3.       // execute pre-render check
      4.       $this->preRenderCheck();
      5.       $this->attributeHolder->set('sf_type''action');
  • at sfPHPView->render()
    in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfCompat10Plugin/lib/filter/sfValidationExecutionFilter.class.php line 251 ...
      1.         break;
      2.       case sfView::RENDER_VAR:
      3.         $viewData $view->render();
      4.         $controller->getActionStack()->getLastEntry()->setPresentation($viewData);
      5.         break;
      6.     }
  • at sfValidationExecutionFilter->executeView('print', 'InvoicePage', 'Success', array('raw' => '

    Invoice #4

--
Thanks & regards
Swarnendu De

Enrique

unread,
Aug 18, 2009, 1:01:52 PM8/18/09
to siwapp-users
ok, thank you very much. We had a ticket with that problem.
This will be fixed in next release candidate.

On Aug 18, 6:38 pm, Swarnendu De <swarnendu...@gmail.com> wrote:
> *Hi,**    Enabling debugging mode shows the following error when clicking on
> "save and send email" option...!! *That is, it can not show the template as
> getting 500 Server error.
>
> To be noted, while creating a new invoice, the same action does not give any
> error..*. Problem comes only when I am editing and then trying to save the
> invoice - and obviously data does not get saved *(however, the mail function
> is not working in both the cases).
> *
>
> ERROR:
> *
>
> 500 | Internal Server Error | sfRenderException The template
> "InvoicePageSuccess.php" does not exist or is unreadable in "". stack trace
>
>    - at **()
>    in *SF_ROOT_DIR/lib/vendor/symfony/lib/view/sfView.class.php* line 374
>    ...<http://www.thestartupgarage.com/webtop/companies/46/applications/siwa...>
>    1.       }
>          2.       else
>          3.       {
>          4.         throw new sfRenderException(sprintf(
>          'The template "%s" does not exist or is unreadable in "%s".', $this
>          ->template, $this->directory));
>          5.       }
>          6.     }
>          7.
>          - at *sfView->preRenderCheck*()
>    in *SF_ROOT_DIR/lib/vendor/symfony/lib/view/sfPHPView.class.php* line 169
>    ...<http://www.thestartupgarage.com/webtop/companies/46/applications/siwa...>
>    1.     if (is_null($content))
>          2.     {
>          3.       // execute pre-render check
>          4.       $this->preRenderCheck();
>          5.
>          6.       $this->attributeHolder->set('sf_type', 'action');
>          7.
>       - at *sfPHPView->render*()
>    in *
>    SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfCompat10Plugin/lib/filter/sfValidationExecutionFilter.class.php
>    * line 251 ...<http://www.thestartupgarage.com/webtop/companies/46/applications/siwa...>
>    1.         break;
>          2.
>          3.       case sfView::RENDER_VAR:
>          4.         $viewData = $view->render();
>          5.         $controller->getActionStack()->getLastEntry()->
>          setPresentation($viewData);
>          6.         break;
>          7.     }
>       - at *sfValidationExecutionFilter->executeView*('print',
>    'InvoicePage', 'Success', *array*('raw' => '  Invoice #4
Reply all
Reply to author
Forward
0 new messages