All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
  Print view

added php7 support to my branches
Author Message
PostPosted: Wed May 31, 2017 6:05 pm 
Regular
User avatar
Offline

Joined: Tue Oct 30, 2012 9:07 am
Posts: 128
Location: Italy
I was going to use sintattica's v8 branch but i've found a few issues with their bootstrap theme (opened an issue on github).

1) My old v6 branch is still working in production in a secure environment.

2) The v7 branch is used successfully since 2 years on almost all customers.
Said so there are a few news about my v7 branch:
- i've added a couple of fixes to v7
- i've added a dev branch to v7 to support php7

Please see: https://github.com/badpenguin/ATK

3) I'm starting the first project with v8 and php7.
About my v8 branch:
- i've merged with sintattica
- i've removed lots of old unused stuffs (un-needed files, old themes)
- i've added badpenguin7 that is a port of stillblue theme
- added lots of changes to fix PHP7

Please see: https://github.com/badpenguin/atk-8

4) My future development will continue on v8 but on my own theme.
Probably adding mobile responsive thing using "pure.io" that is the minimal framework that does not use javascript (except a vanilla script for the menĂ¹): this should not interferee with the current ATK scripts.

_________________
My best regards,

Antonio Gallo
Linux, PHP, Perl/Webmin Consultant
http://badpenguin.org
Join the ATK's Linkedin Group https://www.linkedin.com/groups/ATK-Framework-7446956


Top
 Profile  
 

Re: added php7 support to my branches
PostPosted: Wed Oct 28, 2020 9:16 am 
Regular
Offline

Joined: Wed Aug 01, 2007 9:09 am
Posts: 121
i get the following error when using your branch. what am i doing wrong

Code:
 Object of class auth_db could not be converted to string.
[02:12:05h / 0.01860s / 2.13MB / 0 Queries / 0 System Queries] GET https://finance.mama.com:443/
[+0.00438s / 0.00438s / 1.01MB] New instance made of atkLanguage
[+0.00819s / 0.00381s / 1.35MB] Server info: finance.mama.com (162.141.70.80)
[+0.00829s / 0.00010s / 1.34MB] Loading module - email_template
[+0.00901s / 0.00034s / 1.41MB] Creating Smarty instance
[+0.01082s / 0.00180s / 1.64MB] Instantiated new Smarty
[+0.01090s / 0.00002s / 1.64MB] Loading module - setup
[+0.01103s / 0.00013s / 1.64MB] Loading module - employee
[+0.01116s / 0.00013s / 1.66MB] Loading module - person
[+0.01123s / 0.00007s / 1.66MB] Couldn't find module_preload.inc or module.inc for module 'project' in './modules/project/'
[+0.01124s / 0.00002s / 1.66MB] Loading module - notes
[+0.01134s / 0.00010s / 1.67MB] Loading module - scheduler
[+0.01153s / 0.00019s / 1.69MB] Loading module - reports
[+0.01165s / 0.00012s / 1.76MB] Loading module - pim
[+0.01174s / 0.00009s / 1.76MB] Loading module - search
[+0.01181s / 0.00007s / 1.76MB] Loading module - graph
[+0.01189s / 0.00008s / 1.77MB] Loading module - docmanager
[+0.01203s / 0.00014s / 1.78MB] Loading config file for section docmanager
[+0.01215s / 0.00012s / 1.78MB] Loading config file for section docmanager
[+0.01225s / 0.00009s / 1.78MB] Loading module - gktools
[+0.01232s / 0.00008s / 1.78MB] Loading module - qwab_deluxe
[+0.01243s / 0.00010s / 1.79MB] Loading module - CMS
[+0.01367s / 0.00124s / 1.92MB] creating sessionManager (namespace: default)
[+0.01369s / 0.00003s / 1.92MB] ATKLevel: 0
[+0.01371s / 0.00002s / 1.92MB] atkSessionManager::_removeExpiredStacks: no expired stacks, nothing removed
[+0.01373s / 0.00001s / 1.93MB] [Warning] count(): Parameter must be an array or an object that implements Countable in /home3/lobalaf5/public_html/finance/atk/session/class.atksessionmanager.inc (line 449)
[+0.01378s / 0.00005s / 1.93MB] Trace:
@/home3/lobalaf5/public_html/finance/atk/atktools.inc, line 290
atk_get_trace()
  @/home3/lobalaf5/public_html/finance/atk/session/class.atksessionmanager.inc, line 449
  atkErrorHandler
  (
    "2",
    "count(): Parameter must be an array or an object that implements Countable",
    "/home3/lobalaf5/public_html/finance/atk/session/class.atksessionmanager.inc",
    "449",
    array(postvars=Array(...), g_sessionData=Array(...), atklevel=0, sessionVars=Array(...), pageVars=Array(...), lockedVars=Array(...), stackid=5f9927d5569f2, stack=)
  )
    @/home3/lobalaf5/public_html/finance/atk/session/class.atksessionmanager.inc, line 121
    atkSessionManager->_stackscope
    (
      array()
    )
      @/home3/lobalaf5/public_html/finance/atk/session/class.atksessionmanager.inc, line 1071
      atkSessionManager->session_read
      (
        array()
      )
        @/home3/lobalaf5/public_html/finance/index.php, line 10
        atksession()
[+0.01380s / 0.00001s / 1.92MB] Cleaning stack
[+0.01380s / 0.00001s / 1.92MB] New level on session stack
[+0.01489s / 0.00108s / 2.03MB] creating securityManager (authenticationtype: db, authorizationtype: db, scheme: group)
[+0.01574s / 0.00001s / 2.12MB] [Warning] Illegal string offset 'atk.security.auth_db' in /home3/lobalaf5/public_html/finance/atk/security/class.atksecuritymanager.inc (line 149)
[+0.01579s / 0.00005s / 2.13MB] Trace:
@/home3/lobalaf5/public_html/finance/atk/atktools.inc, line 290
atk_get_trace()
  @/home3/lobalaf5/public_html/finance/atk/security/class.atksecuritymanager.inc, line 149
  atkErrorHandler
  (
    "2",
    "Illegal string offset 'atk.security.auth_db'",
    "/home3/lobalaf5/public_html/finance/atk/security/class.atksecuritymanager.inc",
    "149",
    array(authentication_type=db, authorization_type=db, securityscheme=group, tmp_listeners=atk.security.atksecuritylistener, authentication=Array(...), class=atk.security.auth_db, obj=Object(auth_db))
  )
    @/home3/lobalaf5/public_html/finance/atk/include/security.inc, line 117
    atkSecurityManager->__construct
    (
      "db",
      "db",
      "group"
    )
      @/home3/lobalaf5/public_html/finance/atk/include/security.inc, line 35
      atkGetSecurityManager()
        @/home3/lobalaf5/public_html/finance/index.php, line 11
        atksecure()
[+0.01581s / 0.00001s / 2.13MB] [Recoverable Error] Object of class auth_db could not be converted to string in /home3/lobalaf5/public_html/finance/atk/security/class.atksecuritymanager.inc (line 149)
[+0.01584s / 0.00003s / 2.13MB] Trace:
@/home3/lobalaf5/public_html/finance/atk/atktools.inc, line 290
atk_get_trace()
  @/home3/lobalaf5/public_html/finance/atk/security/class.atksecuritymanager.inc, line 149
  atkErrorHandler
  (
    "4096",
    "Object of class auth_db could not be converted to string",
    "/home3/lobalaf5/public_html/finance/atk/security/class.atksecuritymanager.inc",
    "149",
    array(authentication_type=db, authorization_type=db, securityscheme=group, tmp_listeners=atk.security.atksecuritylistener, authentication=Array(...), class=atk.security.auth_db, obj=Object(auth_db))
  )
    @/home3/lobalaf5/public_html/finance/atk/include/security.inc, line 117
    atkSecurityManager->__construct
    (
      "db",
      "db",
      "group"
    )
      @/home3/lobalaf5/public_html/finance/atk/include/security.inc, line 35
      atkGetSecurityManager()
        @/home3/lobalaf5/public_html/finance/index.php, line 11
        atksecure()
[+0.01588s / 0.00004s / 2.13MB] Created a new atkOutput instance
[+0.01590s / 0.00002s / 2.13MB] Sending no-cache headers (lmd: Wed, 28 Oct 2020 08:12:05 GMT)
[+0.01595s / 0.00005s / 2.13MB] Getting singleton instance atk.utils.atkdebugger
[+0.01597s / 0.00002s / 2.13MB] Debugger initialized. [Open console]


Top
 Profile  
 

Re: added php7 support to my branches
PostPosted: Wed Oct 28, 2020 10:03 am 
Regular
User avatar
Offline

Joined: Tue Oct 30, 2012 9:07 am
Posts: 128
Location: Italy
Note that my branch only works on PHP 7.0

_________________
My best regards,

Antonio Gallo
Linux, PHP, Perl/Webmin Consultant
http://badpenguin.org
Join the ATK's Linkedin Group https://www.linkedin.com/groups/ATK-Framework-7446956


Top
 Profile  
 

Re: added php7 support to my branches
PostPosted: Wed Oct 28, 2020 12:50 pm 
Regular
Offline

Joined: Wed Aug 01, 2007 9:09 am
Posts: 121
i tried it on php 7.0. can you kindly help me debug this. ATK 9 does not suit my needs currently since it lacks documentation or a sample app with a theme or gui


Top
 Profile  
 

Re: added php7 support to my branches
PostPosted: Wed Oct 28, 2020 12:52 pm 
Regular
User avatar
Offline

Joined: Tue Oct 30, 2012 9:07 am
Posts: 128
Location: Italy
sphinix wrote:
i tried it on php 7.0. can you kindly help me debug this. ATK 9 does not suit my needs currently since it lacks documentation or a sample app with a theme or gui


Perhaps just try to turn off error debugging. I use that in production on many critical systems used by 100 peoples and never had such problems. Cannot help more then this since i'm very busy.

_________________
My best regards,

Antonio Gallo
Linux, PHP, Perl/Webmin Consultant
http://badpenguin.org
Join the ATK's Linkedin Group https://www.linkedin.com/groups/ATK-Framework-7446956


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group