1711
alain01
Re: Which editor do you use ?
  • 2019/12/12 14:20

  • alain01

  • Just can't stay away

  • Posts: 530

  • Since: 2003/6/20


Ok, so
i test both edidors this weekend.
Is there any snippets, extension for XOOPS, for
PhPstorm and Visual Studio Code ? (didnt find)

(XMF words, xoops smarty) ?

I think it's easy to create that from a duplicated template from other CMS and changing words keys...
Right ?



1712
geekwright
Re: Where is the header links ?

Some modules assign $xoops_module_header directly, but in general calls like these
$GLOBALS['xoTheme']->addScript(...);
$GLOBALS['xoTheme']->addStylesheet(...);
$GLOBALS['xoTheme']->addMeta(...);

are the preferred way to interact with it.



1713
geekwright
Re: Which editor do you use ?

PhpStorm is my tool of choice for everything XOOPS related. It is awesome!

In the free realm, Visual Studio Code is a very solid and powerful product.



1714
goffy
Re: Which editor do you use ?
  • 2019/12/12 6:57

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


I use also phpstorm, because with this tool you can immediately debug your code, can run code cleaning,....



1715
Mamba
Re: Which editor do you use ?
  • 2019/12/12 5:54

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


PhpStorm is the best ever!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



1716
alain01
Which editor do you use ?
  • 2019/12/12 2:02

  • alain01

  • Just can't stay away

  • Posts: 530

  • Since: 2003/6/20


hi,
i usually use notepad++]Resized Image
to edit all xoops files (tpl, php, css).
I just try the atom editor https://atom.io/Resized Image
.
I know sublime text but it's not free.
Please, let me know wich editor do you use, and why (list advantages and inconvenients).
Is there any editor with XOOPS plugin language (smarty and others xoops words) ?



1717
Dhurgan
Re: Upgrade problem going from 2.3.3 to 2.5.10
  • 2019/12/11 21:49

  • Dhurgan

  • Just popping in

  • Posts: 68

  • Since: 2004/2/11


Hacks might be a problem, I have disabled all modules but the System one.
The databases are, as you said, more or less identical, I noticed the change in password size... but figured that could not cause such a stop

At the moment I have made a fresh install of Xoops and is looking to see if I can populate it with the data from the old one in some manner, i can code so importing data from one and moving it over to the other should be ok if it needs some converting, but so far it looks to be ok

It simply wont get past that step in the process, but if there is a protector hack that might block it... then I need to figure that one out



1718
neo75
Where is the header links ?
  • 2019/12/11 17:48

  • neo75

  • Just popping in

  • Posts: 13

  • Since: 2010/4/28


Hello, I would like to know where are the links generated by the smarty <{$ xoops_module_header}>
When I display the source code in my browser I have links :
<script src="https://www.mysite.com/include/xoops.js" type="text/javascript">script> <link rel="stylesheet" href="https://www.mysite.com/language/french/style.css" type="text/css" />

which appears they are defined in which files.

Please, help me for several days that I am looking for in all files !
Thanks.



1719
rossb
Re: Really stupid php / sql problem
  • 2019/12/11 15:48

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Here's the EXACT code that is failing:

public static function getUsersFromGroup($groupId)
    {
        
/** @var XoopsMemberHandler $memberHandler */
        
$memberHandler xoops_getHandler('member');
        
file_put_contents(OLEDRION_GATEWAY_LOG_PATH"memberHandler: " print_r($memberHandler,true) . "n"FILE_APPEND LOCK_EX);
        
$users         $memberHandler->getUsersByGroup($groupIdtrue);
        
file_put_contents(OLEDRION_GATEWAY_LOG_PATH"users: " print_r($users,true) . "n"FILE_APPEND LOCK_EX);
        return 
$users;
    }

    
/**
     * Retourne la liste des emails des utilisateurs membres d'un groupe
     *
     * @param $groupId
     * @return array Emails list
     * @internal param int $group_id Group's number
     */
    
public static function getEmailsFromGroup($groupId)
    {
        
$ret = [];
        
file_put_contents(OLEDRION_GATEWAY_LOG_PATH"groupId: " print_r($groupId) . "n"FILE_APPEND LOCK_EX);
        
$member_handler xoops_getHandler('member');
        
$user_ids = static::getUsersFromGroup($groupId);
        
file_put_contents(OLEDRION_GATEWAY_LOG_PATH"users_ids: " print_r($user_ids,true) . "n"FILE_APPEND LOCK_EX);
        foreach (
$user_ids as $user_id) {
            
//$user = $member_handler->getUser($user_id);
            
$user $member_handler->getUsers(nulltrue);
            
$ret[] = $user->getVar('email');
        }

        
file_put_contents(OLEDRION_GATEWAY_LOG_PATH"ret: " .  print_r($ret,true) . "n"FILE_APPEND LOCK_EX);
        return 
$ret;
    }



1720
rossb
Re: Really stupid php / sql problem
  • 2019/12/11 13:55

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Further info:

Appears to be sql errors; despite the fact that queries execute OK from command line.
Previously (code above), ALL sql queries returned no results and, did not appear in transaction log.
And, yes, phpmyadmin reports db as "clean"

Really simple testcase (dump the class):
I researched this and error is commonly caused by:
sql: max_allowed_packet (I use 16M, nowhere near hitting this limit)
sql: wait_timeout, interactive_timeout (I use 28800, nowhere near hitting this limit)
running outa memory:
free -h
total used free shared buffers cached
Mem: 1.9G 1.8G 140M 60K 45M 495M
-/+ buffers/cache: 1.3G 681M
Swap: 3.9G 115M 3.8G

$member_handler xoops_getHandler('member');
file_put_contents(OLEDRION_GATEWAY_LOG_PATH"users_ids: " print_r($user_ids,true) . "n"FILE_APPEND LOCK_EX);
memberHandlerXoopsMemberHandler Object
(
    [
groupHandler:protected] => XoopsGroupHandler Object
        
(
            [
table] => xoops_groups
            
[db] => XoopsMySQLDatabaseProxy Object
                
(
                    [
conn] => mysqli Object
                        
(
                            [
affected_rows] => -1
                            
[client_info] => mysqlnd 5.0.11-dev 20120503 $Id76b08b24596e12d4553bd41fc93cccd5bac2fe7a $
                            [
client_version] => 50011
                            
[connect_errno] => 0
                            
[connect_error] => 
                            [
errno] => 2006
                            
[error] => MySQL server has gone away
                            
[error_list] => Array
                                (
                                    [
0] => Array
                                        (
                                            [
errno] => 2006
                                            
[sqlstate] => HY000
                                            
[error] => MySQL server has gone away
                                        
)

                                    [
1] => Array
                                        (
                                            [
errno] => 2006
                                            
[sqlstate] => HY000
                                            
[error] => MySQL server has gone away
                                        
)

                                )

                            [
field_count] => 0
                            
[host_info] => Localhost via UNIX socket
                            
[info] => Rows matched1  Changed1  Warnings0
                            
[insert_id] => 0
                            
[server_info] => 5.5.60-log
                            
[server_version] => 50560
                            
[stat] => 
                            [
sqlstate] => HY000
                            
[protocol_version] => 10
                            
[thread_id] => 2346
                            
[warning_count] => 0
                        
)

                    [
prefix] => xoops
                    
[logger] => XoopsLogger Object
                        
(
                            [
queries] => Array
                                (
                                    [
0] => Array
                                        (
                                            [
sql] => SET SQL_BIG_SELECTS 1
                                            
[error] => 
                                            [
errno] => 
                                            [
query_time] => 0.00029397010803223
                                        
)

                                    [
1] => Array
                                        (
                                            [
sql] => SELECT FROM xoops_config WHERE (conf_modid '0' AND conf_catid '1'ORDER BY conf_order ASC
                                            
[error] => 
                                            [
errno] => 
                                            [
query_time] => 0.0035851001739502
                                        
)

                                    [
2] => Array
                                        (
                                            [
sql] => SELECT sess_datasess_ip FROM xoops_session WHERE sess_id '3l1hmfs01p6f82lu11uk0tmgk1'
                                            
[error] => 
                                            [
errno] => 
                                            [
query_time] => 0.00056004524230957
                                        
)

                                )

                            [
blocks] => Array
                                (
                                )

                            [
extra] => Array
                                (
                                )

                            [
logstart] => Array
                                (
                                    [
XOOPS] => 1576070405.709
                                    
[XOOPS Boot] => 1576070405.709
                                
)

                            [
logend] => Array
                                (
                                    [
query_time] => 1576070405.7597
                                
)

                            [
errors] => Array
                                (
                                )

                            [
deprecated] => Array
                                (
                                )

                            [
usePopup] => 
                            [
activated] => 
                            [
renderingEnabled] => 1
                        
)

                    [
allowWebChanges] => 1
                
)

        )

    [
userHandler:protected] => XoopsUserHandler Object
        
(
            [
handler] => 
            [
handlers] => Array
                (
                    [
read] => 
                    [
stats] => 
                    [
joint] => 
                    [
write] => 
                    [
sync] => 
                )

            [
table] => xoops_users
            
[keyName] => uid
            
[className] => XoopsUser
            
[identifierName] => uname
            
[field_link] => 
            [
field_object] => 
            [
db] => XoopsMySQLDatabaseProxy Object
                
(
                    [
conn] => mysqli Object
                        
(
                            [
affected_rows] => -1
                            
[client_info] => mysqlnd 5.0.11-dev 20120503 $Id76b08b24596e12d4553bd41fc93cccd5bac2fe7a $
                            [
client_version] => 50011
                            
[connect_errno] => 0
                            
[connect_error] => 
                            [
errno] => 2006
                            
[error] => MySQL server has gone away
                            
[error_list] => Array
                                (
                                    [
0] => Array
                                        (
                                            [
errno] => 2006
                                            
[sqlstate] => HY000
                                            
[error] => MySQL server has gone away
                                        
)

                                    [
1] => Array
                                        (
                                            [
errno] => 2006
                                            
[sqlstate] => HY000
                                            
[error] => MySQL server has gone away
                                        
)

                                    [
2] => Array
                                        (
                                            [
errno] => 2006
                                            
[sqlstate] => HY000
                                            
[error] => MySQL server has gone away
                                        
)

                                )

                            [
field_count] => 0
                            
[host_info] => Localhost via UNIX socket
                            
[info] => Rows matched1  Changed1  Warnings0
                            
[insert_id] => 0
                            
[server_info] => 5.5.60-log
                            
[server_version] => 50560
                            
[stat] => 
                            [
sqlstate] => HY000
                            
[protocol_version] => 10
                            
[thread_id] => 2346
                            
[warning_count] => 0
                        
)

                    [
prefix] => xoops
                    
[logger] => XoopsLogger Object
                        
(
                            [
queries] => Array
                                (
                                    [
0] => Array
                                        (
                                            [
sql] => SET SQL_BIG_SELECTS 1
                                            
[error] => 
                                            [
errno] => 
                                            [
query_time] => 0.00029397010803223
                                        
)

                                    [
1] => Array
                                        (
                                            [
sql] => SELECT FROM xoops_config WHERE (conf_modid '0' AND conf_catid '1'ORDER BY conf_order ASC
                                            
[error] => 
                                            [
errno] => 
                                            [
query_time] => 0.0035851001739502
                                        
)

                                    [
2] => Array
                                        (
                                            [
sql] => SELECT sess_datasess_ip FROM xoops_session WHERE sess_id '3l1hmfs01p6f82lu11uk0tmgk1'
                                            
[error] => 
                                            [
errno] => 
                                            [
query_time] => 0.00056004524230957
                                        
)

                                )

                            [
blocks] => Array
                                (
                                )

                            [
extra] => Array
                                (
                                )

                            [
logstart] => Array
                                (
                                    [
XOOPS] => 1576070405.709
                                    
[XOOPS Boot] => 1576070405.709
                                
)

                            [
logend] => Array
                                (
                                    [
query_time] => 1576070405.7597
                                
)

                            [
errors] => Array
                                (
                                )

                            [
deprecated] => Array
                                (
                                )

                            [
usePopup] => 
                            [
activated] => 
                            [
renderingEnabled] => 1
                        
)

                    [
allowWebChanges] => 1
                
)

        )

    [
membershipHandler:protected] => XoopsMembershipHandler Object
        
(
            [
table] => xoops_groups_users_link
            
[db] => XoopsMySQLDatabaseProxy Object
                
(
                    [
conn] => mysqli Object
                        
(
                            [
affected_rows] => -1
                            
[client_info] => mysqlnd 5.0.11-dev 20120503 $Id76b08b24596e12d4553bd41fc93cccd5bac2fe7a $
                            [
client_version] => 50011
                            
[connect_errno] => 0
                            
[connect_error] => 
                            [
errno] => 2006
                            
[error] => MySQL server has gone away
                            
[error_list] => Array
                                (
                                    [
0] => Array
                                        (
                                            [
errno] => 2006
                                            
[sqlstate] => HY000
                                            
[error] => MySQL server has gone away
                                        
)

                                    [
1] => Array
                                        (
                                            [
errno] => 2006
                                            
[sqlstate] => HY000
                                            
[error] => MySQL server has gone away
                                        
)

                                    [
2] => Array
                                        (
                                            [
errno] => 2006
                                            
[sqlstate] => HY000
                                            
[error] => MySQL server has gone away
                                        
)

                                    [
3] => Array
                                        (
                                            [
errno] => 2006
                                            
[sqlstate] => HY000
                                            
[error] => MySQL server has gone away
                                        
)

                                )

                            [
field_count] => 0
                            
[host_info] => Localhost via UNIX socket
                            
[info] => Rows matched1  Changed1  Warnings0
                            
[insert_id] => 0
                            
[server_info] => 5.5.60-log
                            
[server_version] => 50560
                            
[stat] => 
                            [
sqlstate] => HY000
                            
[protocol_version] => 10
                            
[thread_id] => 2346
                            
[warning_count] => 0
                        
)

                    [
prefix] => xoops
                    
[logger] => XoopsLogger Object
                        
(
                            [
queries] => Array
                                (
                                    [
0] => Array
                                        (
                                            [
sql] => SET SQL_BIG_SELECTS 1
                                            
[error] => 
                                            [
errno] => 
                                            [
query_time] => 0.00029397010803223
                                        
)

                                    [
1] => Array
                                        (
                                            [
sql] => SELECT FROM xoops_config WHERE (conf_modid '0' AND conf_catid '1'ORDER BY conf_order ASC
                                            
[error] => 
                                            [
errno] => 
                                            [
query_time] => 0.0035851001739502
                                        
)

                                    [
2] => Array
                                        (
                                            [
sql] => SELECT sess_datasess_ip FROM xoops_session WHERE sess_id '3l1hmfs01p6f82lu11uk0tmgk1'
                                            
[error] => 
                                            [
errno] => 
                                            [
query_time] => 0.00056004524230957
                                        
)

                                )

                            [
blocks] => Array
                                (
                                )

                            [
extra] => Array
                                (
                                )

                            [
logstart] => Array
                                (
                                    [
XOOPS] => 1576070405.709
                                    
[XOOPS Boot] => 1576070405.709
                                
)

                            [
logend] => Array
                                (
                                    [
query_time] => 1576070405.7597
                                
)

                            [
errors] => Array
                                (
                                )

                            [
deprecated] => Array
                                (
                                )

                            [
usePopup] => 
                            [
activated] => 
                            [
renderingEnabled] => 1
                        
)

                    [
allowWebChanges] => 1
                
)

        )

    [
membersWorkingList:protected] => Array
        (
        )

)


What I don't get is why simply instantiating $member_handler = xoops_getHandler('member'); results in errors.

I also have issues with new members being unable to register - keeps returning to basic registration page.

I have spent way too much time on this and am considering giving up on oledrion and finding a non-xoops e-commerce solution.

Anyone care to assist debugging? May involve sshing in.

Regards;
Bill




TopTop
« 1 ... 169 170 171 (172) 173 174 175 ... 29425 »



Login

Who's Online

315 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 315


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits