[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#651944: Feedback on the (unreleased) package



Hi,

thanks a lot for packaging friendica! I was eager to try it out, so I got the 
source package and built it on a Debian stable box (with some necessary jquery 
packages from backports).

Here's some feedback that might be used to improve the package:

- installation of the package went smooth, it asked for the db details, etc.
- after that finished, I found a /etc/apache2/conf.d/friendica.conf, which I 
replaced with the apache2.subdomain.conf from the doc examples directory
- had to remove a space in the "order allow, deny" option (between allow and 
deny)
- the web interface was available, but it showed the installer (is that 
supposed to happen?)
- installer complained about /usr/share/friendica/.htaccess not being 
available and not creatable either, so I created the file and made it writable
- instead of continuing with the installer, I copied 
/etc/friendica/htconfig.php to /usr/share/friendica/.htconfig.php
- however then apache always segfaulted
- I manually created the database with /usr/share/friendica/database.sql and 
finally got friendica up and running

However, some more fixes were needed:
- uploading a profile picture only resulted in a black image, because some 
javascripts were not found. I had to create a symlink 
/usr/share/friendica/cropper/lib/prototype.js to the system installed 
prototype.js, then remove the directory 
/usr/share/friendica/library/cropper/lib directory and finally create a symlink 
/usr/share/friendica/library/cropper/lib to /usr/share/friendica/cropper/lib	

I still found a warning about a type problem in the error log about the profile 
photo, so I adjusted /usr/share/friendica/mod/profile_photo.php lines 56-59 to 
cast the POST variables to integer values:

                $srcX = (int) $_POST['xstart'];
                $srcY = (int) $_POST['ystart'];
                $srcW = (int) $_POST['xfinal'] - $srcX;
                $srcH = (int) $_POST['yfinal'] - $srcY;

The javascript console still showed an error in 
/usr/share/friendica/js/main.js; all accesses to $.someJQuery function or 
object didn't work. I don't really understand what's going in there (some 
undesired mangling of '$.'?), but I changed all occurrences of '$.' to 
'jQuery.' in js/main.js, so that it looks like this

        $(function() {
                jQuery.ajaxSetup({cache: false});
         [,,,]

Then online help didn't work at all (internal server error), I had to remove 
the symlink /usr/share/friendica/library/markdown.php and replace it with the 
PHP Markdown Extra "markdown.php" from http://littoral.michelf.ca/code/php-
markdown/php-markdown-extra-1.2.6.zip

Finally, everything seems to work :-)

HTH,
Carsten


Reply to: