Jump to content

flydev

Members
  • Posts

    1,327
  • Joined

  • Last visited

  • Days Won

    47

Posts posted by flydev

  1. I dont know.  To test an upgrade, just make a backup of your database, rename the directory Blog to .Blog (in site/modules path) and past the new Blog folder from the ZIP you downloaded from github, copy the content of modules/Blog/template-file folder in your templates folder,  then go to in backend > modules then click Refresh and see what happen.

     

    Edit:

    It dont work. The module have some dependencies not fixed, it do not copy the content of certain files, and some problems appear due to namespace. We must wait comment from BitPoet.

     

    • Like 2
  2. Got it working, the cron task call the PHP script.

    Now I am getting another exception, but I suspect my code  MariaDB server - I will open a new thread, thanks for your help horst !

     

    Quote

    Error: Exception: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

     

     

    @Entil`zha could you update the module ? :)

    • Like 2
  3. Yes I refreshed the modules cache, but even more, I reinstalled it from scratch (PW, PwCron) but still getting the same error. I will try on a live server into one hour and will come back. Thanks again.

    • Like 1
  4. Thank you horst, I made the change, now calling the cron.php via CLI still give me this error :

    Quote

    Error: Exception: SQLSTATE[HY000] [2002] No such file or directory (in /www/sites/skom/wwwroot/wire/core/ProcessWire.php line 308)

    #0 /www/sites/skom/wwwroot/wire/core/ProcessWire.php(149): ProcessWire\ProcessWire->load(Object(ProcessWire\Config))

    #1 /www/sites/skom/wwwroot/index.php(52): ProcessWire\ProcessWire->__construct(Object(ProcessWire\Config))

    #2 /www/sites/skom/wwwroot/site/modules/PwCron/cron.php(15): require_once('/www/sites/skom...')

    #3 {main}

     

  5. Another try on PW 3.0.40, another error :

    Quote

    Notice: Undefined offset: 1 in [...]/wire/modules/Process/ProcessModule/ProcessModule.module on line 623

    Notice: Undefined offset: 1 in [...]/wire/modules/Process/ProcessModule/ProcessModule.module on line 623

    • ProcessModule: Invalid module name: PWCron

     

    Someone has already tried this module ? if so, is it working properly?

  6. 1 hour ago, Pravin said:

    Why is it throwing out the following error?

      Reveal hidden contents

    Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/pleasefi/public_html/clients/csdc-ganesh/clean-files.php on line 2

    Fatal error: Namespace declaration statement has to be the very first statement in the script in /home/pleasefi/public_html/clients/csdc-ganesh/clean-files.php on line 2

     
     
     
     
     
     
     

    @Pravin

    You need to remove the html code - first (<pre>) and last lines (</pre>) in your clean-file.php.

    • Like 1
  7. Hi,

    I have the following error on ProcessWire 3.0.40 / MySQL 5.6.28 / PHP 5.6.25 :

     

    Quote

    Fatal error: Exception: SQLSTATE[HY000] [2002] No such file or directory (in /www/sites/skom/wwwroot/wire/core/ProcessWire.php line 308)

    #0 /www/sites/skom/wwwroot/wire/core/ProcessWire.php(149): ProcessWire\ProcessWire->load(Object(ProcessWire\Config))
    #1 /www/sites/skom/wwwroot/index.php(52): ProcessWire\ProcessWire->__construct(Object(ProcessWire\Config))
    #2 /www/sites/skom/wwwroot/site/modules/PWCron/cron.php(15): require_once('/www/sites/skom...')
    #3 {main} in /www/sites/skom/wwwroot/index.php on line 64

     

    And this error on another live site (ProcessWire 3.0.25 / MySQL 5.5.50 /  PHP 5.6.24 :

    Quote

    Error: Call to undefined function wire() (line 17 of [...]/public_html/site/modules/PWCron/cron.php)

     

  8. Hi Jee,

    if empty, the inputfield set himself with the right value on the page save(). Doing something like this should work :

    // set outputformatting to false
    $page->of(false);
    // set the date field to an empty string
    $page->datenow = '';
    // save the page, the date field should be updated
    $page->save();
    // set outputformatting to true
    $page->of(true);

     

×
×
  • Create New...