Siwapp working on PHP7. Can be possible?

455 views
Skip to first unread message

Diego Kunzevich

unread,
Nov 17, 2016, 1:47:49 PM11/17/16
to siwapp-dev
Hello guys,

I made the update & upgrade of my Linux in localhost, from Linux 14.04 to 16.04. But, I am having issues with the Siwapp. I am getting:

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


In the siwapp_dev.php I can see something like this:



500 | Internal Server Error | Doctrine_Record_UnknownPropertyException

Unknown record property / related component "<pre>
alias : Tax
foreign : id
local : tax_id
class : Tax
type : 0
table : Object(TaxTable)
localTable : Object(ItemTaxTable)
name :
refTable :
onDelete :
onUpdate :
deferred :
deferrable :
constraint :
equal :
cascade : Array
owningSide :
refClassRelationAlias :
foreignKeyName :
orderBy :
</pre>" on "ItemTax"

stack trace

  • at ()
    in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record/Filter/Standard.php line 55 ...
      1.      */
      2.     public function filterGet(Doctrine_Record $record$name)
      3.     {
      4.         throw new Doctrine_Record_UnknownPropertyException(sprintf('Unknown record property / related component "%s" on "%s"'$nameget_class($record)));
      5.     }
      6. }
  • at Doctrine_Record_Filter_Standard->filterGet(object('ItemTax'), '<pre> alias : Tax foreign : id local : tax_id class : Tax type : 0 table : Object(TaxTable) localTable : Object(ItemTaxTable) name : refTable : onDelete : onUpdate : deferred : deferrable : constraint : equal : cascade : Array owningSide : refClassRelationAlias : foreignKeyName : orderBy : </pre>')
    in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php line 1395 ...
  • at Doctrine_Record->_get('<pre> alias : Tax foreign : id local : tax_id class : Tax type : 0 table : Object(TaxTable) localTable : Object(ItemTaxTable) name : refTable : onDelete : onUpdate : deferred : deferrable : constraint : equal : cascade : Array owningSide : refClassRelationAlias : foreignKeyName : orderBy : </pre>', 1)
    in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php line 1350 ...
  • at Doctrine_Record->get('<pre> alias : Tax foreign : id local : tax_id class : Tax type : 0 table : Object(TaxTable) localTable : Object(ItemTaxTable) name : refTable : onDelete : onUpdate : deferred : deferrable : constraint : equal : cascade : Array owningSide : refClassRelationAlias : foreignKeyName : orderBy : </pre>')
    in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Access.php line 72 ...
  • at Doctrine_Access->__get('<pre> alias : Tax foreign : id local : tax_id class : Tax type : 0 table : Object(TaxTable) localTable : Object(ItemTaxTable) name : refTable : onDelete : onUpdate : deferred : deferrable : constraint : equal : cascade : Array owningSide : refClassRelationAlias : foreignKeyName : orderBy : </pre>')
    in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Collection.php line 463 ...
  • at Doctrine_Collection->add(object('ItemTax'))
    in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Access.php line 131 ...
  • at Doctrine_Access->offsetSet(null, object('ItemTax'))
    in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Hydrator/Graph.php line 238 ...
  • at Doctrine_Hydrator_Graph->hydrateResultSet(object('Doctrine_Connection_Statement'))
    in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Hydrator.php line 148 ...
  • at Doctrine_Hydrator->hydrateResultSet(object('Doctrine_Connection_Statement'), array('t' => 'Tax', 'i' => 'Tax.ItemTax'))
    in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query/Abstract.php line 1043 ...
  • at Doctrine_Query_Abstract->execute(array('79747'), 2)
    in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query.php line 2181 ...
  • at Doctrine_Query->query('FROM Tax.ItemTax WHERE Tax.ItemTax.item_id IN (?)', array('79747'), null)
    in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php line 897 ...
  • at Doctrine_Connection->query('FROM Tax.ItemTax WHERE Tax.ItemTax.item_id IN (?)', array('79747'))
    in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Relation/Association.php line 132 ...
  • at Doctrine_Relation_Association->fetchRelatedFor(object('Item'))
    in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php line 1380 ...
  • at Doctrine_Record->_get('Taxes', 1)
    in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php line 1350 ...
  • at Doctrine_Record->get('Taxes')
    in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Access.php line 72 ...
  • at Doctrine_Access->__get('Taxes')
    in SF_ROOT_DIR/lib/model/doctrine/Item.class.php line 60 ...
  • at Item->__get('Taxes')
    in SF_ROOT_DIR/lib/model/doctrine/Item.class.php line 96 ...
  • at Item->getTaxesDetail()
    in SF_ROOT_DIR/lib/model/doctrine/Common.class.php line 118 ...
  • at Common->getTaxDetails()
    in SF_ROOT_DIR/lib/model/doctrine/Common.class.php line 101 ...
  • at Common->setAmounts()
    in SF_ROOT_DIR/lib/model/doctrine/Invoice.class.php line 158 ...
  • at Invoice->setAmounts()
    in SF_ROOT_DIR/lib/model/doctrine/CommonTable.class.php line 34 ...
  • at CommonTable::calculateTotals()
    in SF_ROOT_DIR/apps/siwapp/modules/sfGuardAuth/actions/actions.class.php line 159 ...
  • at sfGuardAuthActions->checkIfUpdateTotals()
    in SF_ROOT_DIR/apps/siwapp/modules/sfGuardAuth/actions/actions.class.php line 37 ...
  • at sfGuardAuthActions->executeSignin(object('sfWebRequest'))
    in SF_ROOT_DIR/lib/vendor/symfony/lib/action/sfActions.class.php line 60 ...
  • at sfActions->execute(object('sfWebRequest'))
    in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php line 92 ...
  • at sfExecutionFilter->executeAction(object('sfGuardAuthActions'))
    in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php line 78 ...
  • at sfExecutionFilter->handleAction(object('sfFilterChain'), object('sfGuardAuthActions'))
    in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php line 42 ...
  • at sfExecutionFilter->execute(object('sfFilterChain'))
    in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfFilterChain.class.php line 53 ...
  • at sfFilterChain->execute()
    in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfCommonFilter.class.php line 29 ...
  • at sfCommonFilter->execute(object('sfFilterChain'))
    in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfFilterChain.class.php line 53 ...
  • at sfFilterChain->execute()
    in SF_ROOT_DIR/apps/siwapp/lib/filter/SearchFilter.class.php line 17 ...
  • at SearchFilter->execute(object('sfFilterChain'))
    in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfFilterChain.class.php line 53 ...
  • at sfFilterChain->execute()
    in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfRenderingFilter.class.php line 33 ...
  • at sfRenderingFilter->execute(object('sfFilterChain'))
    in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfFilterChain.class.php line 53 ...
  • at sfFilterChain->execute()
    in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/sfController.class.php line 238 ...
  • at sfController->forward('sfGuardAuth', 'signin')
    in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfBasicSecurityFilter.class.php line 94 ...
  • at sfBasicSecurityFilter->forwardToLoginAction()
    in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfBasicSecurityFilter.class.php line 55 ...
  • at sfBasicSecurityFilter->execute(object('sfFilterChain'))
    in SF_ROOT_DIR/plugins/sfDoctrineGuardPlugin/lib/sfGuardBasicSecurityFilter.class.php line 38 ...
  • at sfGuardBasicSecurityFilter->execute(object('sfFilterChain'))
    in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfFilterChain.class.php line 53 ...
  • at sfFilterChain->execute()
    in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfRenderingFilter.class.php line 33 ...
  • at sfRenderingFilter->execute(object('sfFilterChain'))
    in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfFilterChain.class.php line 53 ...
  • at sfFilterChain->execute()
    in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/sfController.class.php line 238 ...
  • at sfController->forward('dashboard', 'index')
    in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/sfFrontWebController.class.php line 48 ...
  • at sfFrontWebController->dispatch()
    in SF_ROOT_DIR/lib/vendor/symfony/lib/util/sfContext.class.php line 170 ...
  • at sfContext->dispatch()
    in SF_ROOT_DIR/web/siwapp_dev.php line 14 ...




Can anyone tell me what I can do for fix it? My Siwapp version is the first I think, it is using the Symfony v1. I can't imagine that I have to create a new CMS because it doesn't work on this new Linux version (maybe it is related with the PHP 7 instead to use PHP 5).


The importance of fix this issue is because I made a lot of improves on this CMS, it is working great for my expectatives... but well.. i knew that this could been happend in some day, and that day is today.. :(


Thanks in advance...

JM

unread,
Nov 17, 2016, 6:26:15 PM11/17/16
to siwapp-dev
Hello.

The legacy siwapp application is not compatible with PHP 7. The Siwapp Symfony 3 version works under PHP7, but it's not considered stable.
It is available here https://github.com/siwapp/siwapp-sf3 and is maintained by Paris Liakos (the official team discontinued development of the PHP version).

Diego K

unread,
Nov 17, 2016, 6:55:17 PM11/17/16
to siwapp-dev

Hello,

You know.. there is something weird. Now it's working but not at 100%. For example, Customers. Suppliers and Settings doesn't work. I can't get the log for them.
This is something that I am not understanding.

Anyway, thank you for your information about the siwapp-sf3 but I think it is a bit complex for install haha.

Best regards.
Reply all
Reply to author
Forward
0 new messages