Follow us on Facebook and Twitter!

Installation on Live server
#1
I have been trying to install Commentics on my Live server for the past week but seem to be failing miserably. I have done the installation on my WAMP test server with no problems and all is working well.

After I have done the install on the Live server and I open the Admin panel I do the 4 steps listed and on completion it then goes to the Dashboard and I get the following error message under "version check:": Version Check

There is an issue with Commentics.org

Everything else seems normal and I can configure everything ok but when I go to the website nothing is visible, its as though there is no connection to the database.

Hope you can understand what I mean and any help would be grateful.

Thanks

Rick

ersiokkkkkkkerythingkkkkkn Check
Reply
#2
Hi Rick,

With regard to nothing being visible, it might be that the final line of your integration code is failing. Try adding the following line above it so you can see the exact filepath:

PHP Code:
var_dump($_SERVER['DOCUMENT_ROOT'] . $cmtx_folder 'frontend/index.php');
require(
$_SERVER['DOCUMENT_ROOT'] . $cmtx_folder 'frontend/index.php'); 

Then make sure the filepath is correct and exists.

Do you always see that version check error or is it intermittent?
Have you completed the interview?
Reply
#3
Hi Steven

In answer to your second question, yes the version check error is always there whenever I log into the admin panel.

I've added the line above to the integration code as requested and run it again and it indicates the wrong path.

it gives the path as - "/home/linweb25/o/oceanwharf.com/user/htdocs/comments/frontend/index.php"
where in fact it should be "/home/linweb25/o/oceanwharf.com/user/htdocs/hfl_genealogy_02/comments/frontend/index.php"

So where have I gone wrong? I have used the same integration code on the WAMP and that works fine.

Rick
Reply
#4
It could be that the value of $_SERVER['DOCUMENT_ROOT'] is different on your WAMP than on your live server.

To resolve it try changing:

PHP Code:
$cmtx_folder     '/comments/'

To this:

PHP Code:
$cmtx_folder     '/hfl_genealogy_02/comments/'

I'll have a look at the version check error a bit later today.
Have you completed the interview?
Reply
#5
In the file /backend/controller/main/dashboard.php

After this line:

PHP Code:
$latest_version $this->home->getLatestVersion(); 

Can you add this:

PHP Code:
var_dump($latest_version); 

That should give some insight into what's happening.
Have you completed the interview?
Reply
#6
(28-Sep-2018, 09:21 AM)Steven Wrote: It could be that the value of $_SERVER['DOCUMENT_ROOT'] is different on your WAMP than on your live server.

To resolve it try changing:

PHP Code:
$cmtx_folder     '/comments/'

To this:

PHP Code:
$cmtx_folder     '/hfl_genealogy_02/comments/'

I'll have a look at the version check error a bit later today.

That seems to fix the problem, but it just seems like a work around that would need to be done for each site on the hosted server yet on a WAMP server no modification is required for each site and I cannot see why. The folder structure is the same on both servers. It seems that the "Document Root" gets itself truncated on the host server but not the WAMP server.
Reply
#7
(28-Sep-2018, 01:33 PM)Steven Wrote: In the file /backend/controller/main/dashboard.php

After this line:

PHP Code:
$latest_version $this->home->getLatestVersion(); 

Can you add this:

PHP Code:
var_dump($latest_version); 

That should give some insight into what's happening.

Where does it show the dump as I cannot find?
Reply
#8
It should display on the dashboard page. Try adding a die(); statement afterwards.

PHP Code:
var_dump($latest_version);
die(); 
Have you completed the interview?
Reply
#9
when I now restart comadmin all I get is a blank page with "bool(false)" on it
Reply
#10
Okay it sounds like you don't have cURL installed/enabled on your server so it's falling back to the 'file_get_contents' method which is failing for some reason. To confirm, in the admin area can you go to 'Reports -> PHP Info' and search for 'cURL support'. If it's not there or it is but it says disabled then you can resolve the issue by installing/enabling cURL.
Have you completed the interview?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Failing Installation lexrw 1 129 23-May-2019, 08:20 PM
Last Post: Steven
  Installation to existing database not working ogrfnkl 10 2,090 06-Feb-2018, 03:57 PM
Last Post: ogrfnkl
  Installation not going past Start Button on WAMP 3.1.0 Aestoc 10 1,545 30-Nov-2017, 06:22 PM
Last Post: Steven
  Installed all the way but unable to connect to server (SSL problem?) poponuts 2 667 07-Nov-2017, 10:34 PM
Last Post: poponuts
  Installation issue : Warning: mysqli_fetch_assoc() expects parameter kumar 5 2,941 20-Mar-2017, 02:57 PM
Last Post: Steven
  Unable to get installation page Gabe 5 1,526 18-Nov-2016, 07:59 PM
Last Post: jgee
  Admin 500 Internal Server Error hentes 3 1,359 06-Nov-2016, 02:36 PM
Last Post: hentes
  Installation database connection problem ppiper 3 1,666 31-Mar-2016, 10:42 PM
Last Post: Steven
  installation problem peppecol 1 1,049 01-Jan-2016, 01:37 AM
Last Post: Steven
  Installation raybo 6 1,860 18-Nov-2015, 08:07 PM
Last Post: Steven

Forum Jump:


Users browsing this thread: 1 Guest(s)