- Posts: 34
COMMUNITY FORUM
3.7 and PHP 7 and class.upload.php error
- solan
-
Topic Author
- Offline
- Junior Member
i have this issue after update to 3.7...now i cant publish any article
[07-May-2017 15:39:56 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; upload has a deprecated constructor in /home/...../public_html/administrator/components/com_k2/lib/class.upload.php on line 624
how can i fix that.
tnx
Please Log in or Create an account to join the conversation.
- solan
-
Topic Author
- Offline
- Junior Member
- Posts: 34
Please Log in or Create an account to join the conversation.
- esedic
-
- Offline
- Senior Member
- Posts: 50
K2 is using latest stable version 0.33, but there were some commits after that, give it a try.
Also make sure you are using latest K2 & Joomla versions.
Please Log in or Create an account to join the conversation.
- solan
-
Topic Author
- Offline
- Junior Member
- Posts: 34
i am using 2.71 and i haven't knowledge about code adjusting.
i got this error after replacing file
0 syntax error, unexpected '<', expecting end of file
could you adjust this file for me?
github.com/danialfarid/ng-file-upload/compare/master...solan007:patch-2#diff-6f8be017c9f2cc122b7028712ee48594
i thank you
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6229
I'll make sure we use the GitHub copy of class.upload.php when we release v2.7.2.
Please Log in or Create an account to join the conversation.
- solan
-
Topic Author
- Offline
- Junior Member
- Posts: 34
but i have same problem,
i cant publish item and when i push save button, i get blank page after waiting for 10 second;
and when i check error log , i have this
[07-May-2017 15:39:56 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; upload has a deprecated constructor in /home/...../public_html/administrator/components/com_k2/lib/class.upload.php on line 624
i am in trouble for 10 days, cant publish nothing
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6229
Please Log in or Create an account to join the conversation.
- solan
-
Topic Author
- Offline
- Junior Member
- Posts: 34
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; upload has a deprecated constructor in /home/....../public_html/administrator/components/com_k2/lib/class.upload.php on line 624
Fatal error: Maximum execution time of 30 seconds exceeded in /home/i...../public_html/libraries/vendor/joomla/string/src/phputf8/mbstring/core.php on line 43
Please Log in or Create an account to join the conversation.
- solan
-
Topic Author
- Offline
- Junior Member
- Posts: 34
so what is the problem?
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6229
Please Log in or Create an account to join the conversation.
- solan
-
Topic Author
- Offline
- Junior Member
- Posts: 34
nothing changed, just wailing time for saving takes long time
and i am getting this error in chrome browser :
This page isn’t working
site.com didn’t send any data.
ERR_EMPTY_RESPONSE
this occurs only in k2 item publish page
i am confused now
Please Log in or Create an account to join the conversation.
- solan
-
Topic Author
- Offline
- Junior Member
- Posts: 34
nothing changed, just wailing time for saving takes long time
and i am getting this error in chrome browser :
This page isn’t working
site.com didn’t send any data.
ERR_EMPTY_RESPONSE
this occurs only in k2 item publish page
i am confused now
Please Log in or Create an account to join the conversation.
- solan
-
Topic Author
- Offline
- Junior Member
- Posts: 34
i found something strange
when i use "read more" in editor (jce or other editors), i get black page and k2 cant save item
when i remove read more, i can save that and every thing is OK.
what is the problem?
thank you
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- solan
-
Topic Author
- Offline
- Junior Member
- Posts: 34
solved
it was related to new Joomla version
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.