Konti. Posted September 8, 2018 Report Share Posted September 8, 2018 (edited) Salut, am eroarea data : PHP Parse error: syntax error, unexpected '?' la linia : protected function finishSave(array $options) { $this->fireModelEvent('saved', false); if ($this->isDirty() && ($options['touch'] ?? true)) { $this->touchOwners(); } $this->syncOriginal(); } Edited September 8, 2018 by Konti. Quote Link to comment Share on other sites More sharing options...
+Roberth Posted September 9, 2018 Report Share Posted September 9, 2018 Cand incerci sa instalezi ce? Ce versiune de php folosesti? Quote Center Web - Realizam site-uri web! Link to comment Share on other sites More sharing options...
Moderators Courage Posted September 9, 2018 Moderators Report Share Posted September 9, 2018 Null coalescing operator (acel ?? de dupa $options['touch'] ) e disponibil odata cu PHP7 ( link ). Eventual poti inlocui cu structura echivalenta pt versiuni < 7: protected function finishSave(array $options) { $this->fireModelEvent('saved', false); if ($this->isDirty() && ( isset($options['touch']) ? $options['touch'] : true)) { $this->touchOwners(); } $this->syncOriginal(); } Quote Link to comment Share on other sites More sharing options...
Konti. Posted September 9, 2018 Author Report Share Posted September 9, 2018 4 hours ago, Roberth said: Cand incerci sa instalezi ce? Ce versiune de php folosesti? Un panel SA:MP, mai bine spus sa-l conectez. 1 hour ago, Courage said: Null coalescing operator (acel ?? de dupa $options['touch'] ) e disponibil odata cu PHP7 ( link ). Eventual poti inlocui cu structura echivalenta pt versiuni < 7: protected function finishSave(array $options) { $this->fireModelEvent('saved', false); if ($this->isDirty() && ( isset($options['touch']) ? $options['touch'] : true)) { $this->touchOwners(); } $this->syncOriginal(); } Incerc imediat. Iarasi, Parse error: syntax error, unexpected '?' , doar ca pe alta linie : protected function getKeyForSaveQuery() { return $this->original[$this->getKeyName()] ?? $this->getKey(); } Quote Link to comment Share on other sites More sharing options...
+Stefan Posted September 9, 2018 Report Share Posted September 9, 2018 Nu este mai simplu sa faci update la versiunea de PHP decat sa stai sa modifici tot? Quote Link to comment Share on other sites More sharing options...
Moderators Courage Posted September 9, 2018 Moderators Report Share Posted September 9, 2018 11 hours ago, Konti. said: Iarasi, Parse error: syntax error, unexpected '?' , doar ca pe alta linie : protected function getKeyForSaveQuery() { return $this->original[$this->getKeyName()] ?? $this->getKey(); } A ?? B // este echivalent cu isset(A) ? A : B In cazul tau protected function getKeyForSaveQuery() { return isset( $this->original[$this->getKeyName()] ) ? $this->original[$this->getKeyName()] : $this->getKey(); } Quote Link to comment Share on other sites More sharing options...
Konti. Posted September 10, 2018 Author Report Share Posted September 10, 2018 23 hours ago, Courage said: A ?? B // este echivalent cu isset(A) ? A : B In cazul tau protected function getKeyForSaveQuery() { return isset( $this->original[$this->getKeyName()] ) ? $this->original[$this->getKeyName()] : $this->getKey(); } Parse error: syntax error, unexpected '' (T_STRING), expecting function (T_FUNCTION) imi eroare de mai sus cand am inlocuit Quote Link to comment Share on other sites More sharing options...
+Portocala Posted September 11, 2018 Report Share Posted September 11, 2018 La ce linie iti da mai exact eroarea asta? Lasa si tu codul aici. De fapt inainte de toate, mai bine stergi toate modificarile pe care le-ai facut si fa upgrade la PHP7. Nu stim cat de masiva e platforma pe care o folosesti tu aici si am putea sta saptamani sa tot corectam erori asa. Dupa update, daca mai apar erori, revino. 3 Quote https://www.facebook.com/puffysticks/ https://www.instagram.com/puffystickscom/ https://twitter.com/puffysticks Link to comment Share on other sites More sharing options...
Konti. Posted September 13, 2018 Author Report Share Posted September 13, 2018 On 9/11/2018 at 5:17 AM, Portocala said: La ce linie iti da mai exact eroarea asta? Lasa si tu codul aici. De fapt inainte de toate, mai bine stergi toate modificarile pe care le-ai facut si fa upgrade la PHP7. Nu stim cat de masiva e platforma pe care o folosesti tu aici si am putea sta saptamani sa tot corectam erori asa. Dupa update, daca mai apar erori, revino. Si cum il fac ? Quote Link to comment Share on other sites More sharing options...
+Portocala Posted September 13, 2018 Report Share Posted September 13, 2018 Cauta MultiPHP Manager in CPanel si dupa bifeaza domeniul pe care vrei sa schimbi versiunea, si in dreapta sus inainte de listq cu domenii ai un dropdown de unde sa alegi versiunea. Apasa pe save sau ce ai tu acolo and problem solved. Quote https://www.facebook.com/puffysticks/ https://www.instagram.com/puffystickscom/ https://twitter.com/puffysticks Link to comment Share on other sites More sharing options...
Konti. Posted September 13, 2018 Author Report Share Posted September 13, 2018 1 minute ago, Portocala said: Cauta MultiPHP Manager in CPanel si dupa bifeaza domeniul pe care vrei sa schimbi versiunea, si in dreapta sus inainte de listq cu domenii ai un dropdown de unde sa alegi versiunea. Apasa pe save sau ce ai tu acolo and problem solved. Imd Bifez toate @Portocala ? Quote Link to comment Share on other sites More sharing options...
Konti. Posted September 13, 2018 Author Report Share Posted September 13, 2018 Uite aici @Portocala : Am pus php 7 ca current version si dupa imi da HTTP ERROR 500 ... Quote Link to comment Share on other sites More sharing options...
+Portocala Posted September 13, 2018 Report Share Posted September 13, 2018 Toate acele casute cred ca sunt extensii PHP, daca update-ul s-a facut corect si primesti eroare 500 inseamna ca sunt erori in codul PHP cela mai probabil Posteaza si tu sa vedem. Quote https://www.facebook.com/puffysticks/ https://www.instagram.com/puffystickscom/ https://twitter.com/puffysticks Link to comment Share on other sites More sharing options...
Konti. Posted September 14, 2018 Author Report Share Posted September 14, 2018 14 hours ago, Portocala said: Toate acele casute cred ca sunt extensii PHP, daca update-ul s-a facut corect si primesti eroare 500 inseamna ca sunt erori in codul PHP cela mai probabil Posteaza si tu sa vedem. Am mai multe, nu stiu exact care trb sa-l postez ... Quote Link to comment Share on other sites More sharing options...
+Portocala Posted September 14, 2018 Report Share Posted September 14, 2018 Pai hai sa inchidem topicul si sa o lasam balta zic eu... Da aici orice si sectionam noi ffs Quote https://www.facebook.com/puffysticks/ https://www.instagram.com/puffystickscom/ https://twitter.com/puffysticks Link to comment Share on other sites More sharing options...
Veronique55 Posted June 13, 2019 Report Share Posted June 13, 2019 Bună ziua, mulțumesc pentru informații On 13/09/2018 at 09:42, Portocala said: Cauta MultiPHP Manager dans le système de gestion des soins de la peau et des soins de santé Rachat prêt , ainsi que dans les stratégies de gestion, les stratégies de gestion, les stratégies de gestion, les stratégies de gestion des droits de copie et les stratégies de sauvegarde. Apasa pe enregistrer une solution au problème et résoudre le problème. Bună ziua, mulțumesc pentru informații Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.