Keyword

3.7 and PHP 7 and class.upload.php error

  • solan
  • solan's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 4 months 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
7 years 4 months 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
7 years 4 months 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
7 years 4 months ago - 7 years 4 months 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: 7 years 4 months ago by solan.

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

More
7 years 4 months 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.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • solan
  • solan's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 4 months 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
7 years 4 months 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...

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • solan
  • solan's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 4 months 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
7 years 4 months 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
7 years 4 months 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.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum