Giter Club home page Giter Club logo

contao-visitors-bundle's Introduction

contao-visitors-bundle's People

Contributors

baumannsven avatar bugbuster1701 avatar cliffparnitzky avatar seefahrer avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

baumannsven

contao-visitors-bundle's Issues

process terminated with exit code 137

i've tried to install contao-visitors-bundle in my contao 4.4.18 fresh installation
it failed, see screenshot
it seems installed but no database update are available in install tool and module is not in contao backend
now i removed, also the uninstall process was killed
thanks

-------------------------------------------- installation --------------------------------------------

screenshot 2018-05-26 13 12 13

-------------------------------------------- seems installed --------------------------------------------

screenshot 2018-05-26 13 13 36

-------------------------------------------- uninstall --------------------------------------------

screenshot 2018-05-26 13 18 57

Update DB Fehler

ALTER TABLE tl_visitors_category CHANGE visitors_cache_mode visitors_cache_mode TINYINT(1) DEFAULT '1' NOT NULL

Wird immer wieder vorgelegt zum Update

[Insight] Methods and properties visibility should always be explicitly defined - in src/Resources/…/classes/Encoding.php, line 161

in src/Resources/contao/classes/Encoding.php, line 161

This method has no explicit visibility which may lead to maintenability issues. You should always declare a visibility for methods and properties.

       "\xc5\xbe"     => "\x9e",
       "\xc5\xb8"     => "\x9f"
    );

  static function toUTF8($text){
  /**
   * Function \ForceUTF8\Encoding::toUTF8
   *
   * This function leaves UTF8 characters alone, while converting almost all non-UTF8 to UTF8.
   *

da gibt es noch 6 weitere Methoden die angepasst werden sollten.

Posted from SensioLabsInsight

[Insight] PHP code should follow PSR-1 basic coding standard - in src/Resources/…/classes/Encoding.php, line 294

in src/Resources/contao/classes/Encoding.php, line 294

Method names should be declared in camelCase. You should rename this method to comply with PSR-1.

    }
    $text = self::toUTF8(static::utf8_decode($text, $option));
    return $text;
  }

  static function UTF8FixWin1252Chars($text){
    // If you received an UTF-8 string that was converted from Windows-1252 as it was ISO8859-1
    // (ignoring Windows-1252 chars from 80 to 9F) use this function to fix it.
    // See: http://en.wikipedia.org/wiki/Windows-1252

    return str_replace(array_keys(self::$brokenUtf8ToUtf8), array_values(self::$brokenUtf8ToUtf8), $text);

Posted from SensioLabsInsight

User Deprecated: Using Controller::getDatePickerString()

User Deprecated: Using Controller::getDatePickerString() has been deprecated and will no longer work in Contao 5.0. Specify "datepicker"=>true in your DCA file instead.

src/Resources/contao/dca/tl_visitors.php:152 {▼
    › \t'sql'    => "varchar(10) NOT NULL default ''",
    › \t'eval'   => array('maxlength'=>10, 'rgxp'=>'date', 'helpwizard'=>true, 
'datepicker'=>$this->getDatePickerString(), 'tl_class'=>'w50 wizard')
    › ),
  }

[Insight] PHP code should follow PSR-1 basic coding standard - in src/Resources/…/classes/Encoding.php, line 344

in src/Resources/contao/classes/Encoding.php, line 344

Method names should be declared in camelCase. You should rename this method to comply with PSR-1.

    $encodingLabel = self::normalizeEncoding($encodingLabel);
    if($encodingLabel == 'ISO-8859-1') return self::toLatin1($text);
    return self::toUTF8($text);
  }

  protected static function utf8_decode($text, $option)
  {
    if ($option == self::WITHOUT_ICONV || !function_exists('iconv')) {
       $o = utf8_decode(
         str_replace(array_keys(self::$utf8ToWin1252), array_values(self::$utf8ToWin1252), self::toUTF8($text))
       );

Posted from SensioLabsInsight

User Deprecated: Using specialchars()

User Deprecated: Using specialchars() has been deprecated and will no longer work in Contao 5.0. Use StringUtil::specialchars() instead.

src/Resources/contao/modules/ModuleVisitorStat.php:392

Backendstatistik

im neuem BE Theme wurden die limit_toggler ersetzt, das zerhackt die Ansicht derzeit, Anpassungen nötig.

[Insight] Code should not be duplicated - in src/…/ModuleVisitorStatPageCounter.php, line 185

in src/Resources/contao/classes/ModuleVisitorStatPageCounter.php, line 185

The next 32 lines appear in src/Resources/contao/classes/ModuleVisitorStatPageCounter.php:185, src/Resources/contao/classes/ModuleVisitorStatPageCounter.php:255 and src/Resources/contao/classes/ModuleVisitorStatPageCounter.php:326.

                                        visitors_page_lang
                                ")
                        ->limit($limit)
                        ->execute($VisitorsID, self::PAGE_TYPE_NORMAL, self::PAGE_TYPE_FORBIDDEN, $this->today);
        
        while ($objPageStatCount->next())
        {
            switch ($objPageStatCount->visitors_page_type) 
            {
            	case self::PAGE_TYPE_NORMAL :
                    $objPage = \PageModel::findWithDetails($objPageStatCount->visitors_page_id);

Posted from SensioLabsInsight

Package phpoffice/phpexcel is abandoned

Hi,

Composer meldet mir:
Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead.

Könntest Du da anpassen?

Browser: Dooble

Agent String: Dooble/0.07 (de_DE) WebKit
Bis 1.56 WebKit, ab 2.0.0 "Zero-dependency browser.", nur QT

Agent String 2.1.2: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.9.3 Chrome/56.0.2924.122 Safari/537.36

Hinweise nicht lesbar / abgeschnitten

Unter Contao 4.4.13 sind bei der Übersicht einige Elemente nicht lesbar, weil diese abgeschnitten bzw. überdeckt sind. Das Ganze wird erst sichtbar, wenn man die Statistiken mit den drei Punkten öffnet. Details in diesem Screenshot:
visitors

Safari Browser Erkennung

Da Chrome Browser auch "Safari" als String im User Agent haben, muss Safari vor Chrome getestet werden. Safari haben kein "Chrome" als String im User Agent.

Referrer Details umbauen

das Popup umbauen. Umleitung zum eigenen Entry Point kommt öfters zur Fehlermeldung weil Login nicht erkannt wird.
So wie bei Maintenance Link oben wenn aktiviert wäre ne Idee.
Hab nur noch keine Ahnung wie das in Contao 4 geht.

User Deprecated: Using trimsplit()

User Deprecated: Using trimsplit() has been deprecated and will no longer work in Contao 5.0. Use StringUtil::trimsplit() instead.

src/Resources/contao/classes/ModuleVisitorLog.php:59 {▶}

Umlenkung auf 404 Seite durch Bots werden gezählt

[ModuleVisitorsTag::replaceInsertTagsVisitors] [163] BOT: 1
[ModuleVisitorsTag::replaceInsertTagsVisitors] [164] SE : 0
[ModuleVisitorsTag::replaceInsertTagsVisitors] [170] Counted Server: True

Bot wird also erkannt 😕

BotDetection extension required for extension: Visitors!

Ursprung: 	Frontend
Details: 	BotDetection extension required for extension: Visitors!
Funktion: 	ModuleVisitorChecks checkBot

Obwohl installiert erkennt Visitors wohl nicht, das Botdetection installiert ist.
if ( !in_array( 'botdetection', \ModuleLoader::getActive() ) ) ... funktioniert wohl nicht.

ClassLoader in autoload.php ist deprecated

sollte über composer und Angaben in composer.json auch so gefunden werden.

  • autoload.php anpassen
  • use Zeilen einbauen falls nötig, Code anpassen
  • Botdetection Klassen Aufrufe anpassen, über use Zeilen und Klassenname

[Insight] Code should not be duplicated - in src/…/classes/ModuleVisitorsTag.php, line 1087

in src/Resources/contao/classes/ModuleVisitorsTag.php, line 1087

The next 34 lines appear both in src/Resources/contao/classes/ModuleVisitorsTag.php:1087 and src/Resources/contao/controllers/FrontendVisitors.php:341.

	/**
	 * Get User IP
	 *
	 * @return string
	 */
	protected function visitorGetUserIP()
	{
	    $UserIP = \Environment::get('ip');
	    if (strpos($UserIP, ',') !== false) //first IP
	    {
	        $UserIP = trim( substr($UserIP, 0, strpos($UserIP, ',') ) );

Posted from SensioLabsInsight

Deprecated: System::parseDate()

User Deprecated: Using System::parseDate() has been deprecated and will no longer work in Contao 5.0. Use Date::parse() instead.

$this->parseDate() ersetzen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.