Can not install component - Not a valid package

Roger Ghostraven Posted in Technical Support 6 years ago

I have fresh installation of OSSN 4.6 running on an Ubuntu 16.04 LAMP server. I am currently the only user and no modifications have been made. When I try to upload a module I get:

Cannot upload component, make sure it is a valid package.

I am trying to upload the Events 1.7 module. I have verified that the php.ini file max file upload size is 32m. That appears to be the only solution I have found by searching.

Thanks for any help,
Roger

Replies
us Roger Ghostraven Replied 6 years ago

Once again ~Z~ Man is a genius. I didn't have the permissions right on my ossn_data directory. Thank you everyone for the help.

German Michael Zülsdorff Replied 6 years ago

DISPLAY_ERRORS is just a trigger file to switch on error_logging from outside (in case you can't even reach your Ossn admin panel in order to switch it on from there).

The file itself remains empty - that's ok - the actual logging goes to error_log as usual.

Did you try to upload a user avatar or other pic already? In case this doesn't work either, chances are good that your data directory is not writeable by PHP. You can use the verifyperms.php which is bundled with Sysinfo to verify. Copy it to your Ossn install dir and run it like http://Yoursite/verifyperms.php

us Roger Ghostraven Replied 6 years ago

I have done the following with no success:

  1. Edited php.ini increasing maxpostsize to 32M.
  2. Created the DISPLAY_ERRORS file in the root of my installation
  3. Enabled error reporting in OSSN Admin
  4. Attempted to install SYSINFO component, received the same error message

When I go to https://www.avatarliving.gq/DISPLAY_ERRORS I don't see anything.
The OSN Log doesn't show any errors today. The OSSN custom log has the following entries:

> 73.104.45.63 - - [01/Nov/2018:16:48:30 +0000] "GET /js/view/opensource.socialnetwork.js HTTP/1.1" 200 101425
> 73.104.45.63 - - [01/Nov/2018:16:48:30 +0000] "POST /userverified/geticon?data=&ossnts=1541090910&ossntoken=ea58c7c137bacd2129df16ca6df01de6
> HTTP/1.1" 200 333
> 73.104.45.63 - - [01/Nov/2018:16:48:34 +0000] "POST /action/admin/cominstall HTTP/1.1" 302 411
> 73.104.45.63 - - [01/Nov/2018:16:48:34 +0000] "GET /administrator/com
installer HTTP/1.1" 200 3010
> 73.104.45.63 - - [01/Nov/2018:16:48:34 +0000] "GET /css/view/bootstrap.min.css HTTP/1.1" 200 20569
> 73.104.45.63 - - [01/Nov/2018:16:48:34 +0000] "GET /css/view/ossn.admin.default.css HTTP/1.1" 200 5797
> 73.104.45.63 - - [01/Nov/2018:16:48:34 +0000] "GET /js/view/ossn.language.js HTTP/1.1" 200 10458
> 73.104.45.63 - - [01/Nov/2018:16:48:34 +0000] "GET /js/view/opensource.socialnetwork.js HTTP/1.1" 200 101425
> 73.104.45.63 - - [01/Nov/2018:16:48:35 +0000] "POST /userverified/geticon?data=&ossnts=1541090914&ossntoken=623195a02b960df3f8a5fcaf248e3d9b
> HTTP/1.1" 200 333
> 73.104.45.63 - - [01/Nov/2018:16:50:44 +0000] "GET /DISPLAY_ERRORS HTTP/1.1" 200 3775

gb Rishi B Replied 6 years ago

what variables in php.ini are you modifying exactly? You need to set both uploadmaxfilesize and postmaxsize in your php.ini. This topic from stackoverflow might help you: https://stackoverflow.com/questions/2184513/change-the-maximum-upload-file-size

German Michael Zülsdorff Replied 6 years ago

Did you enable errorreporting in your Ossn Admin panel and have a look into your errorlog file?