Code Monkey home page Code Monkey logo

gdo6's People

Contributors

cyber-samuel avatar flederohr avatar gizmore avatar livinskull avatar mehmetraif avatar ricerbot avatar spaceone avatar tehron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gdo6's Issues

Session handling fron cronjob ?

21:53 [:] - #5 Backtrace
Backtrace starts in cronjob.php line 26.
 - GDO\Core\Cronjob::run() ................................................. GDO/Core/Cronjob.php line 24.
 - GDO\Core\ModuleLoader->loadModules() .................................... GDO/Core/ModuleLoader.php line 240.
 - GDO\Core\ModuleLoader->initModuleVars() ................................. GDO/Core/ModuleLoader.php line 413.
 - GDO\Core\GDO_Module->buildSettingsCache() ............................... GDO/Core/GDO_Module.php line 572.
 - GDO\Profile\Module_Profile->getUserConfig() ............................. GDO/Profile/Module_Profile.php line 39.
 - GDO\User\GDO_User::current() ............................................ GDO/User/GDO_User.php line 281.
 - GDO\Session\GDO_Session::user() ......................................... GDO/Session/GDO_Session.php line 71.
 - GDO\Session\GDO_Session::instance() ..................................... GDO/Session/GDO_Session.php line 89.
 - GDO\Session\GDO_Session::start() ........................................ GDO/Session/GDO_Session.php line 168.
 - GDO\Session\GDO_Session::createSession() ................................ GDO/Session/GDO_Session.php line 280.
 - GDO\Core\GDO->insert() .................................................. GDO/Core/GDO.php line 696.
 - GDO\Core\GDO->insertOrReplace(GDO\DB\Query, true) ....................... GDO/Core/GDO.php line 705.
 - GDO\DB\Query->exec() .................................................... GDO/DB/Query.php line 538.
 - GDO\DB\Database->queryWrite("INSERT INTO gdo_session (`s…\",NULL,NULL)")  GDO/DB/Database.php line 144.
 - GDO\DB\Database->query("INSERT INTO gdo_session (`s…\",NULL,NULL)") ..... GDO/DB/Database.php line 179.
21:53 [:] - #6: (0.0006s) SELECT * FROM gdo_session WHERE (sess_id="1404") LIMIT 0, 1
21:53 [:] - #6 Backtrace
Backtrace starts in cronjob.php line 26.
 - GDO\Core\Cronjob::run() ................................................ GDO/Core/Cronjob.php line 24.
 - GDO\Core\ModuleLoader->loadModules() ................................... GDO/Core/ModuleLoader.php line 240.
 - GDO\Core\ModuleLoader->initModuleVars() ................................ GDO/Core/ModuleLoader.php line 413.
 - GDO\Core\GDO_Module->buildSettingsCache() .............................. GDO/Core/GDO_Module.php line 572.
 - GDO\Profile\Module_Profile->getUserConfig() ............................ GDO/Profile/Module_Profile.php line 39.
 - GDO\User\GDO_User::current() ........................................... GDO/User/GDO_User.php line 281.
 - GDO\Session\GDO_Session::user() ........................................ GDO/Session/GDO_Session.php line 71.
 - GDO\Session\GDO_Session::instance() .................................... GDO/Session/GDO_Session.php line 89.
 - GDO\Session\GDO_Session::start() ....................................... GDO/Session/GDO_Session.php line 169.
 - GDO\Session\GDO_Session::reloadCookie("1404-ZwJYKeQ1bdid1ZYE") ......... GDO/Session/GDO_Session.php line 216.
 - GDO\Core\GDO->find("1404", false) ...................................... GDO/Core/GDO.php line 586.
 - GDO\Core\GDO::getById("1404") .......................................... GDO/Core/GDO.php line 1064.
 - GDO\DB\Query->exec() ................................................... GDO/DB/Query.php line 542.
 - GDO\DB\Database->queryRead("SELECT * FROM gdo_session W…") LIMIT 0, 1")  GDO/DB/Database.php line 137.
 - GDO\DB\Database->query("SELECT * FROM gdo_session W…") LIMIT 0, 1") .... GDO/DB/Database.php line 179.

Session handling in index.php

PHP Warning(EH 2): mysqli_query(): (42000/3057): Incorrect user-level lock name ''. in GDO/DB/Database.php line 150

Backtrace starts in index.php line 146.
- GDO\DB\Database->unlock(false) ......................................... GDO/DB/Database.php line 439.
- GDO\DB\Database->queryRead("SELECT RELEASE_LOCK('&#…9;') as L") GDO/DB/Database.php line 137.
- GDO\DB\Database->query("SELECT RELEASE_LOCK('&#…9;') as L") .... GDO/DB/Database.php line 150.
- mysqli_query(mysqli, "SELECT RELEASE_LOCK('&#…9;') as L") ...... [unknown file] line ?.

I think the Database::instance()->unlock($lock); in index.php line 146 needs to be conditional with :

if (GDO_DB_ENABLED && GDO_SESS_LOCK && $method->isLockingSession()) {
     Database::instance()->unlock($lock);
}

Tests should use a different config

Tests should use a different application config. (maybe protected/config-test.php?)

As it is, they overwrite the database used for development, dropping all data along with it, really annoying to find out after one started the test script

Test docs incomplete

DOCS/GDO_TESTS.md#testing-configuration

Please run tests in an own test installation, because files/ are overwritten.

files and what? Probably database content?

install module Links

Installing module Links.
PHP Exception: Database Error(1071): Specified key was too long; max key length is 3072 bytes<br/>
CREATE TABLE IF NOT EXISTS gdo_link (
link_id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
link_url VARCHAR(1024) CHARSET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
link_title VARCHAR(128) CHARSET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
link_lang CHAR(2) CHARSET ascii COLLATE ascii_bin NULL,FOREIGN KEY (link_lang) REFERENCES gdo_language(lang_iso) ON DELETE SET NULL ON UPDATE SET NULL,
link_description_input TEXT(512) CHARSET utf8mb4 COLLATE utf8mb4_general_ci NULL,
link_description_output TEXT(512) CHARSET utf8mb4 COLLATE utf8mb4_general_ci NULL,
link_description_text TEXT(512) CHARSET utf8mb4 COLLATE utf8mb4_general_ci NULL
,
link_level INT UNSIGNED NOT NULL DEFAULT "0",
link_views INT UNSIGNED NOT NULL DEFAULT "0",
link_rating DECIMAL(4,2) NOT NULL DEFAULT "0",
link_votes INT UNSIGNED NULL DEFAULT "0",
link_checked_at DATETIME(3)  NULL,
link_created_by INT UNSIGNED NULL,FOREIGN KEY (link_created_by) REFERENCES gdo_user(user_id) ON DELETE SET NULL ON UPDATE SET NULL,
link_created_at DATETIME(3)  NOT NULL,
link_deleted_at DATETIME(3)  NULL,
UNIQUE(link_url)
) ENGINE = innodb<br/>
 in GDO/DB/Database.php line 165
Backtrace starts in gdoadm.php line 329.
 - GDO\Install\Installer::installModule() ....... GDO/Install/Installer.php line 34.
 - GDO\Install\Installer::installModuleClasses()  GDO/Install/Installer.php line 68.
 - GDO\Install\Installer::installModuleClass() .. GDO/Install/Installer.php line 79.
 - GDO\Core\GDO->createTable() .................. GDO/Core/GDO.php line 1294.
 - GDO\DB\Database->createTable() ............... GDO/DB/Database.php line 304.
 - GDO\DB\Database->queryWrite() ................ GDO/DB/Database.php line 144.
 - GDO\DB\Database->query() ..................... GDO/DB/Database.php line 165.

Error on render() when opening the UI

13:54 [ip:] - Call to a member function render() on null in /usr/local/www/gdo6/GDO/UI/tpl/page.php Line 28
13:54 [ip:] - Uncaught Error: Call to a member function render() on null in /usr/local/www/gdo6/GDO/UI/tpl/page.php:28
Stack trace:
#0 /usr/local/www/gdo6/GDO/Core/GDT_Template.php(141): include()
#1 /usr/local/www/gdo6/GDO/UI/GDT_Page.php(84): GDO\Core\GDT_Template::php()
#2 /usr/local/www/gdo6/GDO/Core/GDT.php(321): GDO\UI\GDT_Page->renderCell()
#3 /usr/local/www/gdo6/GDO/Core/Debug.php(271): GDO\Core\GDT->render()
#4 /usr/local/www/gdo6/GDO/Core/Debug.php(239): GDO\Core\Debug::renderError()
#5 /usr/local/www/gdo6/GDO/Core/Debug.php(209): GDO\Core\Debug::debugException()
#6 [internal function]: GDO\Core\Debug::exception_handler()
#7 {main}
  thrown in GDO/UI/tpl/page.php line 28

Segfault during ./gdo_bower.sh

tehron@h2149196:~/gdo6$ ./gdo_bower.sh
All modules: bower update
Thanks to greycat@freenode#bash
GDO/File/
bower flow.js#~2               resolve https://github.com/flowjs/flow.js.git#~2
bower flow.js#~2              download https://github.com/flowjs/flow.js/archive/v2.14.1.tar.gz
bower flow.js#~2               extract archive.tar.gz
bower flow.js#~2              resolved https://github.com/flowjs/flow.js.git#2.14.1
bower flow.js#~2               install flow.js#2.14.1

flow.js#2.14.1 bower_components/flow.js
GDO/JQueryUI/
bower ddslick#*                resolve https://github.com/prashantchaudhary/ddslick.git#*
bower jquery-ui.combobox#^1.0.7          resolve https://github.com/asleepwalker/jquery-ui.combobox.git#^1.0.7
bower jquery-ui#^1.12.1                  resolve https://github.com/components/jqueryui.git#^1.12.1
bower ddslick#*                         download https://github.com/prashantchaudhary/ddslick/archive/master.tar.gz
bower jquery-ui#^1.12.1                 download https://github.com/components/jqueryui/archive/1.12.1.tar.gz
bower jquery-ui.combobox#^1.0.7         download https://github.com/asleepwalker/jquery-ui.combobox/archive/1.0.7.tar.gz
./gdo_bower.sh: line 8: 25886 Segmentation fault      bower --force update
GDO/TinyMCE/
bower tinymce#^4.6.6           resolve https://github.com/tinymce/tinymce-dist.git#^4.6.6
bower tinymce#^4.6.6          download https://github.com/tinymce/tinymce-dist/archive/4.9.11.tar.gz
bower tinymce#^4.6.6           extract archive.tar.gz
bower tinymce#^4.6.6          resolved https://github.com/tinymce/tinymce-dist.git#4.9.11
bower tinymce#^4.6.6           install tinymce#4.9.11

tinymce#4.9.11 bower_components/tinymce
tehron@h2149196:~/gdo6/GDO/JQueryUI$ bower --force --verbose update
bower jquery-ui.combobox#^1.0.7          resolve https://github.com/asleepwalker/jquery-ui.combobox.git#^1.0.7
bower jquery-ui#^1.12.1                  resolve https://github.com/components/jqueryui.git#^1.12.1
bower ddslick#*                          resolve https://github.com/prashantchaudhary/ddslick.git#*
bower jquery-ui.combobox#^1.0.7         download https://github.com/asleepwalker/jquery-ui.combobox/archive/1.0.7.tar.gz
bower jquery-ui#^1.12.1                 download https://github.com/components/jqueryui/archive/1.12.1.tar.gz
bower ddslick#*                         download https://github.com/prashantchaudhary/ddslick/archive/master.tar.gz
bower jquery-ui.combobox#^1.0.7          extract archive.tar.gz
Segmentation fault
tehron@h2149196:~/gdo6/GDO/JQueryUI$ bower --version
1.8.12

Not sure if this is a gdo6 or bower issue, so feel free to close :)

Undefined function Cache::cooldown() in /GDO/DB/Cache.php

When enabling the option GWF_MEMCACHE in the config.php following exception is thrown when clearing the cache:

PHP Exception: Call to undefined method GDO/DB/Cache::cooldown() in GDO/DB/Cache.php line 46
Backtrace starts in index.php line 80.
GDO\Core\Method->exec() .................. GDO/Core/Method.php line 375.
GDO\Core\Method->execWrap() .............. GDO/Core/Method.php line 398.
GDO\Core\Method->executeWithInit() ....... GDO/Core/Method.php line 437.
GDO\Admin\Method\ClearCache->execute() ... GDO/Admin/Method/ClearCache.php line 35.
GDO\Admin\Method\ClearCache->clearCache() GDO/Admin/Method/ClearCache.php line 42.
GDO\DB\Cache::flush() .................... GDO/DB/Cache.php line 46.

Changing the file and removing the call of the undefined Cache::cooldown() seems to fix the issue.

diff --git a/GDO/DB/Cache.php b/GDO/DB/Cache.php
index 1642215..d89c5c0 100644
--- a/GDO/DB/Cache.php
+++ b/GDO/DB/Cache.php
@@ -43,7 +43,7 @@ class Cache
        public static function get($key) { return GWF_MEMCACHE ? self::$MEMCACHED->get(GWF_MEMCACHE_PREFIX.$key) : false; }
        public static function set($key, $value) { if (GWF_MEMCACHE) self::$MEMCACHED->set(GWF_MEMCACHE_PREFIX.$key, $value); }
        public static function remove($key) { if (GWF_MEMCACHE) self::$MEMCACHED->delete(GWF_MEMCACHE_PREFIX.$key); }
-       public static function flush() { if (GWF_MEMCACHE) { self::$MEMCACHED->flush(); Cache::cooldown(); } }
+       public static function flush() { if (GWF_MEMCACHE) { self::$MEMCACHED->flush(); } }
        public static function init()
        {
                if (GWF_MEMCACHE)

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.