Development

#7986 (Sorting column in Propel admin Generator lead error 500)

You must first sign up to be able to contribute.

Ticket #7986 (new defect)

Opened 3 years ago

Last modified 1 year ago

Sorting column in Propel admin Generator lead error 500

Reported by: loicoco Assigned to: fabien
Priority: minor Milestone:
Component: sfPropelPlugin Version: 1.4.x DEV
Keywords: Admin generator, Propel Cc: loic@nvision.lu
Qualification: Unreviewed

Description

In Symfony 1.4 ( and 1.3 ), in the Propel Admin Generator, sorting column lead to an error 500 page.

Checking the code, the error seems to be raised by the line 88 in BasePeer? class ( function getFieldnames) : "return call_user_func_array($callable, $args);"

here is the server configuration: php: 5.2.12 os: centos 5.4 mysql: 5.0.88

php isinstalled as CGI

Change History

(in reply to: ↑ description ; follow-up: ↓ 5 ) 01/15/10 17:42:55 changed by ppp0

I have the same problem with symfony 1.4.1, propel and admin generator. Sort configuration in generator.yml is ignored, clicking on the table header to sort table gives a segmentation fault and an empty page is returned.

There is a workaround, as mentioned in http://forum.symfony-project.org/index.php/m/90483/#msg_90704

For me, it works...

02/09/10 09:46:21 changed by sakarikl

We had that exact same problem and we got it fixed when changing require function to require_once in ClasNamePeer?.php

in our case

lib/model/CategoryPeer.php

<?php

require 'lib/model/om/BaseCategoryPeer.php';


/**
 * Skeleton subclass for performing query and update operations on the 'category' table.
 *
 * 
 *
 * You should add additional methods to this class to meet the
 * application requirements.  This class will only be generated as
 * long as it does not already exist in the output directory.
 *
 * @package    lib.model
 */
class CategoryPeer extends BaseCategoryPeer {

} // CategoryPeer

in that file changing require to require_once solved it.

we are using sf 1.4.1 PHP 5.2.11

02/18/10 15:50:27 changed by mppfiles

Confirmed and fixed with suggested workaround.

Ubuntu 9.10 32-bit Apache/2.2.12 (Ubuntu) PHP/5.2.10-2ubuntu6.4 with Suhosin-Patch mod_ssl/2.2.12 OpenSSL/0.9.8g Symfony 1.4.2 - Propel 1.4.1

08/09/10 11:39:40 changed by andrehooijer

I had a similar problem.
I fixed it by installing Apache version 2.2.16

(in reply to: ↑ 1 ) 03/22/12 20:45:35 changed by daviddale

  • version changed from 1.4.1 to 1.4.x DEV.

Replying to ppp0:

I have the same problem with symfony 1.4.1, propel and admin generator. Sort configuration in generator.yml is ignored, clicking on the table header to sort table gives a segmentation fault and an empty page is returned. There is a workaround, as mentioned in http://forum.symfony-project.org/index.php/m/90483/#msg_90704 For me, it works...

I had the exact same problem and applied the above workaround and it solved the issue:

if (class_exists($peerclass)) {
  return call_user_func_array($callable, $args);
}
return false;