Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all 5859 articles
Browse latest View live

CustomPiwikJs Error

$
0
0

@Code1420 wrote:

I get this error everything I active or deactivate a plugin.

plugins/CustomPiwikJs/TrackingCode/PluginTrackerFiles.php(55): Warning - Invalid argument supplied for foreach() - Piwik 3.0.1

plugins/CustomPiwikJs/TrackingCode/PluginTrackerFiles.php(65): Warning - Invalid argument supplied for foreach() - Piwik 3.0.1

Posts: 1

Participants: 1

Read full topic


Custom report generation in piwik

$
0
0

@shrey wrote:

Hey,

I added few tables to piwik db and now i want to display some custom reports generated from the data stored in those tables.
I was successful in creating and inserting data into those tables, but i am stuck on creation of custom reports, i surfed net, read api documentation of piwik but still not able to get the clear idea on how to create a custom report in piwik.
It would be a great help if anyone can guide me through this process or share some tutorials or useful links for creating custom reports.

Thank you in advance!

Posts: 1

Participants: 1

Read full topic

504 Gateway Time-out during installation

$
0
0

@Joep wrote:

Hi guys,

I can't get Piwik installed - It is giving me a 504 Gateway Time-out error at the second step. (System Check)

Any suggestions?

Joep

Posts: 1

Participants: 1

Read full topic

After upgrade to version 3 no cities showing on acitivity map

$
0
0

@yockl wrote:

Hello,

since december 16, my piwik instance is not showing the cities anymore on the activity map. I use the GeoIP2 plugin including the cities information, could anyone help on this issue?

Thank you in advancded

Posts: 1

Participants: 1

Read full topic

Update 3.01 fail

$
0
0

@mwaack wrote:

After update to 3.01 we get this error:

"Subcategory 1 already exists"

Whats going wrong?
Piwik 3.01
PHP 5.5.32
mySql 5.5.28

Posts: 1

Participants: 1

Read full topic

Logging for sharepoint site no longer occurring

$
0
0

@wwatkins wrote:

In past we've been able to track hits through our SharePoint site, we have full access to add the JS code to our site header through SharePoint designer.
However, we migrated our site from RHEL5 to RHEL6 server, we're running 2.17.1 Piwik, and we have 5 sites, all but the SharePoint site is working.

I've been combing through every space I can think of including:
Adding the code again (after deleting other code)
Looking in the conf files (/etc/httpd/conf.d/) and /piwik/config/*.ini.php files, checking any PHP issues (since in the migration we did upgrade our PHP version to 5.6.26) and removing all the code and adding it back in location by location seeing if it triggered anything.

So far, no luck.

Any ideas?

Posts: 2

Participants: 1

Read full topic

Repository Upgrade 2.17-1 to 3.0.1-1 failed with the following

$
0
0

@kyleschen wrote:

Hi,

after we upgraded today on a Ubuntu 16.04 from 2.17-1 to 3.0.1-1 via Repository i got the following Problems:
(Database Upgrade and console core:update have been done)

  1. Loginpage Looks like this:

A fatal error occurred
Please contact the system administrator, or login to Piwik to learn more.

If you are Super User, but cannot login because of this error, you can still troubleshoot further. Follow these steps:
1) open the config/config.ini.php file and look for the salt value under [General].
2) edit this current URL you are viewing and add the following text (replacing salt_value_from_config by the salt value from the config file):

index.php?i_am_super_user=salt_value_from_config&....

  1. When i Login then now i get this:

A fatal error occurred

The following error just broke Piwik (v3.0.1):

.form-description is undefined: failed at .form-description; line: 6096
in
/usr/share/piwik/core/AssetManager/UIAssetMerger/StylesheetUIAssetMerger.php line 48

  1. I get stuff like this in the nginx error logfile even after raising the available memory:

2017/01/16 15:10:15 [error] 1762#1762: *175 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 536870920 bytes) in /usr/share/piwik/core/FileIntegrity.php on line 259" while reading response header from upstream, client: x.x.x.x, server: x.x.x, request: "GET /index.php?i_am_super_user=salt_value_from_config&module=CoreUpdater&action= HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "x.x.x.net"

I hope you can help me fixing this bugs quite fast since we have only one production host left now.

Best regards

Andreas

Posts: 1

Participants: 1

Read full topic

Errors displaying monthly/date range stats

$
0
0

@Dibs wrote:

Dear Piwik Team

Recently our Piwik UI has started to display various error messages when selecting monthly or date range reports. Errors range between Oops… there was a problem during the request & a few MySql errors i.e 126 Incorrect key file for table ‘/tmp/#’;

here is an extract from the piwik log file:

ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] Failed to get data from API: SQLSTATE[HY000]: General error: 126 Incorrect key file for table '/tmp/#sql_10e1_22.MYI'; try to repair it - caused by plugin Actions
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #0 /var/www/piwik/core/ArchiveProcessor/Loader.php(126): Piwik\ArchiveProcessor\PluginsArchiver->callAggregateAllPlugins('496497', '0')
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #1 /var/www/piwik/core/ArchiveProcessor/Loader.php(74): Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive(false, false)
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #2 /var/www/piwik/core/Archive.php(901): Piwik\ArchiveProcessor\Loader->prepareArchive('VisitsSummary')
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #3 /var/www/piwik/core/Archive.php(715): Piwik\Archive->prepareArchive(Array, Object(Piwik\Site), Object(Piwik\Period\Day))
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #4 /var/www/piwik/core/Archive.php(667): Piwik\Archive->cacheArchiveIdsAfterLaunching(Array, Array)
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #5 /var/www/piwik/core/Archive.php(605): Piwik\Archive->getArchiveIds(Array)
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #6 /var/www/piwik/core/Archive.php(332): Piwik\Archive->get(Array, 'numeric')
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #7 /var/www/piwik/plugins/VisitsSummary/API.php(35): Piwik\Archive->getDataTableFromNumeric(Array)
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #8 [internal function]: Piwik\Plugins\VisitsSummary\API->get('3', 'day', '2016-11-01,2016...', false, 'nb_visits')
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #9 /var/www/piwik/core/API/Proxy.php(208): call_user_func_array(Array, Array)
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #10 /var/www/piwik/plugins/API/API.php(408): Piwik\API\Proxy->call('\Piwik\Plugins\...', 'get', Array)
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #11 [internal function]: Piwik\Plugins\API\API->get('3', 'day', '2016-11-01,2016...', false, Array)
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #12 /var/www/piwik/core/API/Proxy.php(208): call_user_func_array(Array, Array)
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #13 /var/www/piwik/core/Plugin/Visualization.php(259): Piwik\API\Proxy->call('\Piwik\Plugins\...', 'get', Array)
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #14 /var/www/piwik/core/Plugin/Visualization.php(180): Piwik\Plugin\Visualization->loadDataTableFromAPI()
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #15 /var/www/piwik/core/Plugin/ViewDataTable.php(414): Piwik\Plugin\Visualization->buildView()
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #16 /var/www/piwik/core/Plugin/Controller.php(248): Piwik\Plugin\ViewDataTable->render()
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #17 /var/www/piwik/plugins/VisitsSummary/Controller.php(125): Piwik\Plugin\Controller->renderView(Object(Piwik\Plugins\CoreVisualizations\Visualizations\JqplotGraph\Evolution))
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #18 [internal function]: Piwik\Plugins\VisitsSummary\Controller->getEvolutionGraph()
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #19 /var/www/piwik/core/FrontController.php(495): call_user_func_array(Array, Array)
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #20 /var/www/piwik/core/FrontController.php(99): Piwik\FrontController->doDispatch(NULL, NULL, NULL)
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #21 /var/www/piwik/core/dispatch.php(34): Piwik\FrontController->dispatch()
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #22 /var/www/piwik/index.php(27): require_once('/var/www/piwik/...')
ERROR VisitsSummary[2017-01-17 14:15:13] [b6ead] #23 {main}

ERROR CoreHome[2017-01-17 14:15:13] [8e95d] Failed to get data from API: SQLSTATE[HY000]: General error: 126 Incorrect key file for table '/tmp/#sql_10e1_77.MYI'; try to repair it - caused by plugin Actions
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #0 /var/www/piwik/core/ArchiveProcessor/Loader.php(126): Piwik\ArchiveProcessor\PluginsArchiver->callAggregateAllPlugins('496497', '0')
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #1 /var/www/piwik/core/ArchiveProcessor/Loader.php(74): Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive(false, false)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #2 /var/www/piwik/core/Archive.php(901): Piwik\ArchiveProcessor\Loader->prepareArchive('VisitsSummary')
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #3 /var/www/piwik/core/Archive.php(715): Piwik\Archive->prepareArchive(Array, Object(Piwik\Site), Object(Piwik\Period\Day))
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #4 /var/www/piwik/core/Archive.php(667): Piwik\Archive->cacheArchiveIdsAfterLaunching(Array, Array)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #5 /var/www/piwik/core/Archive.php(605): Piwik\Archive->getArchiveIds(Array)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #6 /var/www/piwik/core/Archive.php(332): Piwik\Archive->get(Array, 'numeric')
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #7 /var/www/piwik/core/ArchiveProcessor.php(559): Piwik\Archive->getDataTableFromNumeric(Array)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #8 /var/www/piwik/core/ArchiveProcessor.php(256): Piwik\ArchiveProcessor->getAggregatedNumericMetrics(Array, false)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #9 /var/www/piwik/core/ArchiveProcessor/PluginsArchiver.php(236): Piwik\ArchiveProcessor->aggregateNumericMetrics(Array)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #10 /var/www/piwik/core/ArchiveProcessor/PluginsArchiver.php(76): Piwik\ArchiveProcessor\PluginsArchiver->aggregateMultipleVisitsMetrics()
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #11 /var/www/piwik/core/ArchiveProcessor/Loader.php(118): Piwik\ArchiveProcessor\PluginsArchiver->callAggregateCoreMetrics()
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #12 /var/www/piwik/core/ArchiveProcessor/Loader.php(74): Piwik\ArchiveProcessor\Loader->prepareAllPluginsArchive(false, false)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #13 /var/www/piwik/core/Archive.php(901): Piwik\ArchiveProcessor\Loader->prepareArchive('VisitsSummary')
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #14 /var/www/piwik/core/Archive.php(715): Piwik\Archive->prepareArchive(Array, Object(Piwik\Site), Object(Piwik\Period\Month))
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #15 /var/www/piwik/core/Archive.php(667): Piwik\Archive->cacheArchiveIdsAfterLaunching(Array, Array)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #16 /var/www/piwik/core/Archive.php(605): Piwik\Archive->getArchiveIds(Array)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #17 /var/www/piwik/core/Archive.php(332): Piwik\Archive->get(Array, 'numeric')
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #18 /var/www/piwik/core/ArchiveProcessor.php(559): Piwik\Archive->getDataTableFromNumeric(Array)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #19 /var/www/piwik/core/ArchiveProcessor.php(256): Piwik\ArchiveProcessor->getAggregatedNumericMetrics(Array, false)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #20 /var/www/piwik/core/ArchiveProcessor/PluginsArchiver.php(236): Piwik\ArchiveProcessor->aggregateNumericMetrics(Array)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #21 /var/www/piwik/core/ArchiveProcessor/PluginsArchiver.php(76): Piwik\ArchiveProcessor\PluginsArchiver->aggregateMultipleVisitsMetrics()
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #22 /var/www/piwik/core/ArchiveProcessor/Loader.php(99): Piwik\ArchiveProcessor\PluginsArchiver->callAggregateCoreMetrics()
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #23 /var/www/piwik/core/ArchiveProcessor/Loader.php(73): Piwik\ArchiveProcessor\Loader->prepareCoreMetricsArchive(false, false)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #24 /var/www/piwik/core/Archive.php(901): Piwik\ArchiveProcessor\Loader->prepareArchive('DevicesDetectio...')
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #25 /var/www/piwik/core/Archive.php(715): Piwik\Archive->prepareArchive(Array, Object(Piwik\Site), Object(Piwik\Period\Range))
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #26 /var/www/piwik/core/Archive.php(667): Piwik\Archive->cacheArchiveIdsAfterLaunching(Array, Array)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #27 /var/www/piwik/core/Archive.php(605): Piwik\Archive->getArchiveIds(Array)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #28 /var/www/piwik/core/Archive.php(377): Piwik\Archive->get('DevicesDetectio...', 'blob', NULL)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #29 /var/www/piwik/plugins/DevicesDetection/API.php(36): Piwik\Archive->getDataTable('DevicesDetectio...')
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #30 /var/www/piwik/plugins/DevicesDetection/API.php(237): Piwik\Plugins\DevicesDetection\API->getDataTable('DevicesDetectio...', '3', 'range', '2016-11-01,2016...', false)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #31 [internal function]: Piwik\Plugins\DevicesDetection\API->getBrowsers('3', 'range', '2016-11-01,2016...', false)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #32 /var/www/piwik/core/API/Proxy.php(208): call_user_func_array(Array, Array)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #33 /var/www/piwik/core/Plugin/Visualization.php(259): Piwik\API\Proxy->call('\Piwik\Plugins\...', 'getBrowsers', Array)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #34 /var/www/piwik/core/Plugin/Visualization.php(180): Piwik\Plugin\Visualization->loadDataTableFromAPI()
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #35 /var/www/piwik/core/Plugin/ViewDataTable.php(414): Piwik\Plugin\Visualization->buildView()
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #36 /var/www/piwik/core/Plugin/Report.php(338): Piwik\Plugin\ViewDataTable->render()
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #37 /var/www/piwik/plugins/CoreHome/Controller.php(78): Piwik\Plugin\Report->render()
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #38 [internal function]: Piwik\Plugins\CoreHome\Controller->renderReportWidget(Object(Piwik\Plugins\DevicesDetection\Reports\GetBrowsers))
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #39 /var/www/piwik/core/FrontController.php(495): call_user_func_array(Array, Array)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #40 /var/www/piwik/core/FrontController.php(99): Piwik\FrontController->doDispatch(NULL, NULL, NULL)
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #41 /var/www/piwik/core/dispatch.php(34): Piwik\FrontController->dispatch()
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #42 /var/www/piwik/index.php(27): require_once('/var/www/piwik/...')
ERROR CoreHome[2017-01-17 14:15:13] [8e95d] #43 {main}

Has anyone any idea what the cause can be ?
I have already increased memory and tmp disk space.

Thanks
Dibs

Posts: 1

Participants: 1

Read full topic


Dashboard: Module Websites is empty after upgrading to 3.0.0

$
0
0

@zyclop wrote:

Hi there,

first of all, my update was almost successful even to version 3.0.1! But one thing is still weird, my portlet "Websites" doesn't show anything since I have upgraded to version 3.0.0:

In the section "Live Tracking" I can see where my visitors come from... why not in "Websites" portlet?

Best regards,
zyclop

Posts: 1

Participants: 1

Read full topic

Visitor Log - Ooops

$
0
0

@brian wrote:

Created a new install of piwik for our domain name migration and to keep prod and non-prod stats separate.

My visitor log always get this message but only for internet (non-intranet) traffic.

I have tried all debugging steps but don't see any errors or anything unusual. Sql shows no errors. Nothing in the logs even if I log to file, nothing on screen. I'm lost. All other stats show correctly that I can tell. I was thinking it is the external dns that is wrong but only Visitor Log seems to have an issue.

Any ideas?

Oops… there was a problem during the request. Maybe the server had a temporary issue, or maybe you requested a report with too much data. Please try again. If this error occurs repeatedly please contact your Piwik administrator for assistance.

Posts: 1

Participants: 1

Read full topic

Upgraded to unavailable PHP - How to downgrade?

$
0
0

@stml wrote:

I elected to automatically upgrade Piwik as the option was offered on the dashboard, but having upgraded I get an error message saying Piwik requires PHP version 5.5.9 and my webserver is using PHP version 5.4.43.

As I am on a shared host I do not have any control over the PHP version, and now can no longer access my analytics. This is a very serious problem. How do I

a) Restore access to my analytics, presumably by downgrading the Piwik version?

b) Prevent this occurring again? Does Piwik not check for PHP versions before upgrading? This seems to be trivial and obvious?

Many thanks for any help received.

Posts: 1

Participants: 1

Read full topic

System Check > File Integrity > piwik-archive.log (never deletes)

$
0
0

@greatestjourney wrote:

Hi,
I have installed Piwik all ok, but in system check the file integrity always reports to delete "piwik-archive.log".
Even when I delete this, the next day the file re-generates and the system tells me to delete it. So the cycle repeats.

Did something go wrong during install?
Can you anyone help advise?
Thanks.

Posts: 1

Participants: 1

Read full topic

Piwik error in chrome browser

Goals by Campaigns - Not Tracking Properly

$
0
0

@tjsmith230 wrote:

I use UTM tracking links on all my ads, and I have goals setup to track conversions. However, the goals only seem to be triggering from the other sources (Websites, Search Engines, Direct Entry) and NOT from my Campaigns. What would cause that? Please help!

Posts: 1

Participants: 1

Read full topic

Following a UTM visitor through a redirect

$
0
0

@tjsmith230 wrote:

I use UTM tracking links on all my ads, and I use ClickFunnels for my landing pages sometimes. I have installed the Piwik tracking code on all my ClickFunnels pages, so everything is being tracked. However, I am curious about the redirect, and it's affect on the tracking. Basically, the destination URL is the funnel domain, but then it redirects to one of the page variants (for A/B testing). Am I going to lose conversion data because the visitor was automatically redirected, and the tracking URL didn't load a page? Please help!

Posts: 1

Participants: 1

Read full topic


Local search DAY result not visible in MONTH result

$
0
0

@paulfoole wrote:

When I look at mij results for keyword in local search for a period of 1 day I see an result x.
After changing the period of 1 day to on month result x is nog showing.

Posts: 1

Participants: 1

Read full topic

Problems with new installation

$
0
0

@patrick_here wrote:

Hello,
I'm new to Piwik and to this forum.
I just installed Piwik on my Ubuntu VPS server and am having problems getting it to work. Generally the install went well but now that I go to use it I get this error message:
Oops… there was a problem during the request. Maybe the server had a temporary issue, or maybe you requested a report with too much data. Please try again. If this error occurs repeatedly please contact your Piwik administrator for assistance.
I do not know how to begin debugging this. My server is working fine. One other thing that I do notice is that my Apache error log for this install directory has messages saying "client denied by server configuration:" but I wouldn't know how to interpret that. I went through the related page at:
https://piwik.org/faq/troubleshooting/faq_19489/
...but it didn't help.
The website is a wordpress site. The WP-Piwik plugin is installed and - as best as I can see - it is installed and working correctly. There was an error message but I fixed that issue.
I am very familiar with Linux and with the command line. Can anyone point me in the right direction. Thanks.
Patrick

Posts: 1

Participants: 1

Read full topic

Piwik Page overlay option

Automatic piwik installation for a custom docker Image could not create a directory

$
0
0

@Dimitrios_Desyllas wrote:

I am creating a custom docker image using piwik. What I want to acheive is by running thin container to have automatically the database configured and piwik fully installed with the only thing remaining is to create a default user. Also I wanted to have utility scripts for backup and restore.

Therefore I created this:

And I managed using php console config:set to configure the database connection. So using the foillowing entrypoint script:

#!/bin/bash

if [ ! -e piwik.php ]; then
  cp -R /usr/src/piwik/* /var/www/html

  mkdir "/var/www/html/tmp/cache/tracker/"
  chmod 777 -R /var/www/html/tmp/cache

  find /var/www/html -iname "*.php" | xargs chmod +x

  chown -R www-data:www-data .
fi


: ${PIWIK_DB_HOST:=$DB_PORT_3306_TCP_ADDR}
echo "Mariadb Addr:"$DB_PORT_3306_TCP_ADDR
: ${PIWIK_DB_PORT:=${DB_PORT_3306_TCP_PORT}}
COUNTER=0
  echo "Waiting for mysql to start at ${PIWIK_DB_HOST} using port ${PIWIK_DB_PORT}..."
  while ! mysqladmin ping -h"$PIWIK_DB_HOST" -P $PIWIK_DB_PORT --silent; do
    if [ $COUNTER -gt 10 ] ; then
      exit 1
    fi
      echo "Connecting to ${PIWIK_DB_HOST} Failed"
      COUNTER=$[COUNTER+1]
      sleep 1
  done

  echo "Setting up the database connection info"
: ${PIWIK_DB_USER:=${DB_ENV_MYSQL_USER:-root}}
: ${PIWIK_DB_NAME:=${DB_ENV_MYSQL_DATABASE:-'piwik'}}

  if [ "$PIWIK_DB_USER" = 'root' ]; then
: ${PIWIK_DB_PASSWORD:=$DB_ENV_MYSQL_ROOT_PASSWORD}
  else
: ${PIWIK_DB_PASSWORD:=$DB_ENV_MYSQL_PASSWORD}
  fi

if ! mysql -h"$PIWIK_DB_HOST" -P $PIWIK_DB_PORT -u ${PIWIK_DB_USER} -p${PIWIK_DB_PASSWORD}  -e ";" ; then
  echo "The user does not exist to the mysql server: ${PIWIK_DB_HOST}"
  exit 1
fi

php console config:set --section="database" --key="host" --value=${PIWIK_DB_HOST}
php console config:set --section="database" --key="port" --value=${PIWIK_DB_PORT}
php console config:set --section="database" --key="username" --value=${PIWIK_DB_USER}
php console config:set --section="database" --key="password" --value=${PIWIK_DB_PASSWORD}
php console config:set --section="database" --key="tables_prefix" --value="piwik_"

php index.php

exec "$@"

I try to perform an cli installation of piwik. But when I visit the piwik page from my browser I get the follwing error:

The directory "/var/www/html/tmp/cache/tracker/" does not exist and could not be created.

Do you have any sort of idea how I will fix this problem?

Posts: 1

Participants: 1

Read full topic

Your Opinion matters! Piwik Analytics 2017 Survey --->

$
0
0

@matthieu wrote:

It's been almost two years since our last survey. We were so happy to get the participation we did from the community last time and hope that you will once again share your thoughts!

Piwik Survey


Fill in the survey

Now it is time to ask for your opinion again. Sure it's only 15 short questions, but your time you take and energy you place in this endeavour will shape Piwik development and features for the near future. We really look forward to your ideas, your opinions and your suggestions. To get started click the box (or link) below:

Piwik Survey


Fill in the survey!

Posts: 1

Participants: 1

Read full topic

Viewing all 5859 articles
Browse latest View live


Latest Images