Keyword

3.7 and PHP 7 and class.upload.php error

  • solan
  • solan's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 2 weeks ago #161802 by solan
hi
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
  • solan's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 2 weeks ago #161812 by solan
Replied by solan on topic 3.7 and PHP 7 and class.upload.php error
is there a solution for this?

Please Log in or Create an account to join the conversation.

More
8 years 2 weeks ago #161813 by esedic
Replied by esedic on topic 3.7 and PHP 7 and class.upload.php error
You could try to update class.upload.php with latest dev version: github.com/verot/class.upload.php.
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
  • solan's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 2 weeks ago - 8 years 2 weeks ago #161814 by solan
Replied by solan on topic 3.7 and PHP 7 and class.upload.php error
tnx for your answer

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
Last edit: 8 years 2 weeks ago by solan.

Please Log in or Create an account to join the conversation.

More
8 years 2 weeks ago #161815 by JoomlaWorks
Replied by JoomlaWorks on topic 3.7 and PHP 7 and class.upload.php error
This is just a notice. Nothing that causes issues. Just switch error reporting to "default" or "none" in Joomla.

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
  • solan's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 2 weeks ago #161817 by solan
Replied by solan on topic 3.7 and PHP 7 and class.upload.php error
i replaced that

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.

More
8 years 2 weeks ago #161818 by JoomlaWorks
Replied by JoomlaWorks on topic 3.7 and PHP 7 and class.upload.php error
Switch error reporting to maximum so you can see what error is produced instead of a blank screen. The deprecated notice you mention is not the problem...

Please Log in or Create an account to join the conversation.

  • solan
  • solan's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 2 weeks ago #161819 by solan
Replied by solan on topic 3.7 and PHP 7 and class.upload.php error
now i got these


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
  • solan's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 2 weeks ago #161820 by solan
Replied by solan on topic 3.7 and PHP 7 and class.upload.php error
if this is not the problem

so what is the problem?

Please Log in or Create an account to join the conversation.

More
8 years 2 weeks ago #161822 by JoomlaWorks
Replied by JoomlaWorks on topic 3.7 and PHP 7 and class.upload.php error
The fatal error is the problem and it comes from a core part of Joomla. Increase your "max_execution_time" variable in PHP to something sane, e.g. "120" (seconds), or ask your hosting provider to do it for you.

Please Log in or Create an account to join the conversation.

  • solan
  • solan's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 2 weeks ago - 8 years 2 weeks ago #161823 by solan
Replied by solan on topic 3.7 and PHP 7 and class.upload.php error
i did that

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
Last edit: 8 years 2 weeks ago by solan.

Please Log in or Create an account to join the conversation.

  • solan
  • solan's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 2 weeks ago - 8 years 2 weeks ago #161824 by solan
Replied by solan on topic 3.7 and PHP 7 and class.upload.php error
i did that

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
Last edit: 8 years 2 weeks ago by solan.

Please Log in or Create an account to join the conversation.

  • solan
  • solan's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 2 weeks ago - 8 years 2 weeks ago #161834 by solan
Replied by solan on topic 3.7 and PHP 7 and class.upload.php error
hi again

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
Last edit: 8 years 2 weeks ago by solan.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 weeks ago #161843 by Krikor Boghossian
Replied by Krikor Boghossian on topic 3.7 and PHP 7 and class.upload.php error
If you are using two separate editors for intro and full text is the error still present?

Please Log in or Create an account to join the conversation.

  • solan
  • solan's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 11 months ago #162244 by solan
Replied by solan on topic 3.7 and PHP 7 and class.upload.php error
Krikor

solved
it was related to new Joomla version

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #162254 by Krikor Boghossian
Replied by Krikor Boghossian on topic 3.7 and PHP 7 and class.upload.php error
Nice to hear that you sorted this out.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum