Jump to content

The server returned a "500 Internal Server Error".


Recommended Posts

Hallo Prestashop Members

Ich bin hier ganz neue und brauche eure Hilfe.

Mein Prestashop zeigt die nächste Fehlermeldung wenn ich in Backoffice die Bestellungen ansehen will (beim Klicken "Bestellungen").

Oops! An Error Occurred

The server returned a "500 Internal Server Error".

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

Ich bin sehr Dankbar wenn jemand mir helfen würde. Der Hoster(IONOS 1und1) kann nicht helfen. 

 

grüß E_B

Link to comment
Share on other sites

Ich glaube du meinst

 

in UnitOfWork.php line 2636

at ErrorHandler->handleError(2, '"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?', '/homepages/43/d802513904/htdocs/clickandbuilds/PrestaShop/EthiopianBooks/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php', 2636, array('class' => 'Doctrine\\ORM\\UnitOfWork', 'e' => 32767, 'file' => '/homepages/43/d802513904/htdocs/clickandbuilds/PrestaShop/EthiopianBooks/vendor/composer/../doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php'))in DebugClassLoader.php line 156

at require()in DebugClassLoader.php line 156

at DebugClassLoader->loadClass('Doctrine\\ORM\\UnitOfWork')

at spl_autoload_call('Doctrine\\ORM\\UnitOfWork')in EntityManager.php line 160

at EntityManager->__construct(object(Connection), object(Configuration), object(ContainerAwareEventManager))in EntityManager.php line 850

at EntityManager::create(object(Connection), object(Configuration))in appDevDebugProjectContainer.php line 1813

at appDevDebugProjectContainer->getDoctrine_Orm_DefaultEntityManagerService()in Container.php line 306

at Container->get('doctrine.orm.default_entity_manager')in ManagerRegistry.php line 48

at ManagerRegistry->getService('doctrine.orm.default_entity_manager')in AbstractManagerRegistry.php line 231

at AbstractManagerRegistry->getManagers()in ProxyCacheWarmer.php line 49

at ProxyCacheWarmer->warmUp('/homepages/43/d802513904/htdocs/clickandbuilds/PrestaShop/EthiopianBooks/var/cache/dev')in CacheWarmerAggregate.php line 52

at CacheWarmerAggregate->warmUp('/homepages/43/d802513904/htdocs/clickandbuilds/PrestaShop/EthiopianBooks/var/cache/dev')in Kernel.php line 680

at Kernel->initializeContainer()in Kernel.php line 135

at Kernel->boot()in Kernel.php line 195

at Kernel->handle(object(Request), 1, false)in index.php line 86

Link to comment
Share on other sites

Aber im angeführten Topic steht leider auch nicht, wie man unter PHP 7.3 weiter verfahren kann. Im Grunde sind nur zwei kleine Änderungen in der Doktrin erforderlich, und zwar in der Datei

vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php

Der Befehl continue; muss in der monierten Zeile und dann nochmal ein bisschen weiter unten jeweils durch break; ersetzt werden.

             // use the entity association
                    if (isset($data[$field]) && is_object($data[$field]) && isset($this->entityStates[spl_object_hash($data[$field])])) {
                        $class->reflFields[$field]->setValue($entity, $data[$field]);
                        $this->originalEntityData[$oid][$field] = $data[$field];

                        continue; break;
                    }

                    $associatedId = array();

                    // TODO: Is this even computed right in all cases of composite keys?
                    foreach ($assoc['targetToSourceKeyColumns'] as $targetColumn => $srcColumn) {
                        $joinColumnValue = isset($data[$srcColumn]) ? $data[$srcColumn] : null;

                        if ($joinColumnValue !== null) {
                            if ($targetClass->containsForeignIdentifier) {
                                $associatedId[$targetClass->getFieldForColumn($targetColumn)] = $joinColumnValue;
                            } else {
                                $associatedId[$targetClass->fieldNames[$targetColumn]] = $joinColumnValue;
                            }
                        } elseif ($targetClass->containsForeignIdentifier
                            && in_array($targetClass->getFieldForColumn($targetColumn), $targetClass->identifier, true)
                        ) {
                            // the missing key is part of target's entity primary key
                            $associatedId = array();
                            break;
                        }
                    }

                    if ( ! $associatedId) {
                        // Foreign key is NULL
                        $class->reflFields[$field]->setValue($entity, null);
                        $this->originalEntityData[$oid][$field] = null;

                        continue; break;
                    }

Edited by Wuschel (see edit history)
Link to comment
Share on other sites

16 minutes ago, Klausen said:

Gibt es schon einen (inoffiziellen) Release-Termin für PS 1.8? Die Roadmap schweigt sich darüber vornehm aus, dort wird eifrig noch an 1.7.x gebastelt.

Gruß Werner Klausen

Prestashop hat noch nie Releases mit genauem Datum angekündigt. Das war schon immer so. Plötzlich war es da. Man erfuhr erst ein paar Tage vorher davon.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...