Advertisement:

Author Topic: Cannot Install Theme !!  (Read 810 times)

eelgharabawy

  • Newbie
  • *
  • Posts: 1
Cannot Install Theme !!
« on: January 07, 2018, 11:38:10 pm »
Hi Guys,

Please I need your help to install my theme. When I go to Themes to upload it as a zip file, it takes a while then it shows that the file hasn't been uploaded. I have tried this tens of times but all trials are in vain.

Please I need your help to figure this problem out.

WEBmods

  • Hero Member
  • *****
  • Posts: 937
  • github.com/webmods-croatia/love-osclass/ | patrick
Re: Cannot Install Theme !!
« Reply #1 on: January 08, 2018, 12:14:49 am »
You probably need to increase PHP execution time and max upload size, but I don't know your theme file size so I can,t be sure.

Another way is to upload your theme using Filezilla or by going to cPanel -> File manager.

You should extract the zip file an upload the extracted folder to directory public_html/oc-content/themes.

Aficionado

  • Guest
Re: Cannot Install Theme !!
« Reply #2 on: January 08, 2018, 01:48:47 am »
You probably need to increase PHP execution time

No, that actually will hide the problem. And PHP execution time has nothing to do with how long the upload takes. PHP execution time is something else.

Quote
Note:

The set_time_limit() function and the configuration directive max_execution_time only affect the execution time of the script itself. Any time spent on activity that happens outside the execution of the script such as system calls using system(), stream operations, database queries, etc. is not included when determining the maximum time that the script has been running. This is not true on Windows where the measured time is real

http://php.net/manual/en/function.set-time-limit.php

« Last Edit: January 08, 2018, 01:50:43 am by Aficionado »

Aficionado

  • Guest
Re: Cannot Install Theme !!
« Reply #3 on: January 08, 2018, 01:54:54 am »
Hi Guys,

Please I need your help to install my theme. When I go to Themes to upload it as a zip file, it takes a while then it shows that the file hasn't been uploaded. I have tried this tens of times but all trials are in vain.

Please I need your help to figure this problem out.

Enable Osclass Debug to a LOG:

https://doc.osclass.org/Debug_PHP_errors

and check for errors.

WEBmods

  • Hero Member
  • *****
  • Posts: 937
  • github.com/webmods-croatia/love-osclass/ | patrick
Re: Cannot Install Theme !!
« Reply #4 on: January 08, 2018, 04:08:35 pm »
You probably need to increase PHP execution time

No, that actually will hide the problem. And PHP execution time has nothing to do with how long the upload takes. PHP execution time is something else.

Quote
Note:

The set_time_limit() function and the configuration directive max_execution_time only affect the execution time of the script itself. Any time spent on activity that happens outside the execution of the script such as system calls using system(), stream operations, database queries, etc. is not included when determining the maximum time that the script has been running. This is not true on Windows where the measured time is real

http://php.net/manual/en/function.set-time-limit.php

Sorry then, I tried :P.

Aficionado

  • Guest
Re: Cannot Install Theme !!
« Reply #5 on: January 08, 2018, 05:02:42 pm »

Sorry then, I tried :P.

No apologies needed, continue to help when you can.

All help is welcome here.

WEBmods

  • Hero Member
  • *****
  • Posts: 937
  • github.com/webmods-croatia/love-osclass/ | patrick
Re: Cannot Install Theme !!
« Reply #6 on: January 08, 2018, 07:41:18 pm »

Sorry then, I tried :P.

No apologies needed, continue to help when you can.

All help is welcome here.

Thank you, I will. :D