ElkArte Community

Project Support => Support => Topic started by: overscan on November 23, 2014, 01:16:17 pm

Title: Basic Elkarte Installation issues
Post by: overscan on November 23, 2014, 01:16:17 pm
So, I trashed my VPS with the first install of Elkarte before realising I was hitting an inode limitation (OpenVZ problem) and I'm starting again. This is a new 14.04 VPS and I'm still getting used to new PHP, Apache2 and MySQL versions.

Problems with 1.0.1 install:

1) All URLs in theme, smileys. avatars defaulting to 127.0.0.1 (clue is the broken layout without a theme)

Pretty sure I had this last time. Easily fixable but not ideal for new users. Surely the installer should derive these URLs from the forum URL?

2) I can't upload anything to forum. Same server has a running version of SMF which uploads fine so it doesn't seem to be a php.ini issue.  When I choose something to upload I get the attached error. 
Title: Re: Basic Elkarte Installation issues
Post by: Spuds on November 24, 2014, 01:59:48 pm
On the file upload, is there anything in the post / ajax response?   Obviously "undefined" is a useless error, not sure if that from text file missing or an error that the js did not understand.

If you want to share the address and an ID for test, feel free to PM me so I can take a look.

ETA: on the 127.0.0.1, what should be coming from your server, what does this output when you run it?
Code: [Select]
<?php
echo '
        server name :: ',  $_SERVER['SERVER_NAME'], '<br/>' ,  'http post :: ', $_SERVER['HTTP_HOST'];

Title: Re: Basic Elkarte Installation issues
Post by: overscan on November 25, 2014, 02:42:20 am
Result of script:

server name :: elkarte.secretprojects.co.uk
http post :: elkarte.secretprojects.co.uk

Server is Ubuntu 14.04, PHP 5.5, Apache 2.4

Board URL is correct, just not the urls in smileys, avatars, themes. I know from SMF server migration experience these three are not derived from board URL in settings.php but are stored separately.

I might delete the install and try again.
Title: Re: Basic Elkarte Installation issues
Post by: Spuds on November 25, 2014, 08:24:56 am
Thanks I'll do some more looking as well.  I run on 14.04 as well but with Nginx as the web server.  Any other clues on the file upload, they may be a clue in the post response to the ajax request
Title: Re: Basic Elkarte Installation issues
Post by: overscan on November 26, 2014, 02:57:45 am
So I figured this out - it is the Fancybox mod which is breaking the upload.

If I remove Fancybox, it all works fine.

Fancybox worked ok on 1.0 so I think this is a 1.01 issue.
Title: Re: Basic Elkarte Installation issues
Post by: overscan on November 26, 2014, 02:59:47 am
From Elkarte error log:

8: Undefined index: fancybox_Padding
http://elkarte.secretprojects.co.uk/index.php?action=post2;start=0;board=1
File: /home/sites/elkarte.secretprojects.co.uk/web/sources/subs/fb4elk.subs.php Line: 96
Title: Re: Basic Elkarte Installation issues
Post by: Jorin on November 26, 2014, 04:09:18 am
Missing string fancybox_Padding in language files.
Title: Re: Basic Elkarte Installation issues
Post by: Spuds on November 26, 2014, 01:10:54 pm
Would seem ... That txt string is something I added when I added all of the image upload site support to the addon.  Strange that was causing you (upload) issues though  :-\
Title: Re: Basic Elkarte Installation issues
Post by: overscan on November 28, 2014, 05:17:55 am
Fixed it :)

Line 96 in fb4elk.subs.php

                                padding: ' . $modSettings['fancybox_Padding'] . ',

Edited to
                                padding: "' . $modSettings['fancybox_Padding'] . '",

Now Fancybox works, as does uploading :)
Title: Re: Basic Elkarte Installation issues
Post by: Spuds on November 28, 2014, 09:47:23 am
Ah ... broken JS in the chain, good catch.
Title: Re: Basic Elkarte Installation issues
Post by: emanuele on November 28, 2014, 01:03:59 pm
Spuds you broke it!!!
Title: Re: Basic Elkarte Installation issues
Post by: Spuds on November 28, 2014, 02:24:13 pm
Its my special gift ! :P