Jump to content

thdt98

Members
  • Content count

    97
  • Joined

  • Last visited

Everything posted by thdt98

  1. thdt98

    Stock Taking Cost 0.2

    Yes you did it twice I guess. Check if you have 2 table with the same name, if it is the case erease one.
  2. Welcome to this thread for this new contribution. New feature: - Export to Excel in CVS format
  3. thdt98

    Stock Taking Cost 0.2

    Yes you are right you have to go into phpMyadmin. You have to open a query window (SQL button for instance) and placing into it the code 'Alter.....' and press go. The table should added. I think the best is to have a go. When I started last year I knew nothing in mySQL and php. I learned by try and error and with those forums. Maybe my install might be a little difficult for someone with no experience. Perhaps the contrib margin 2.6 would be easier. Anyway give it a go.
  4. thdt98

    Who's Online Enhancement 1.4

    But in 1.52 it is ok What's up doctor ? What is the difference in the session between 1.61 and 1.52 ? Why is it a such nightmare with this 1.61?
  5. thdt98

    Who's Online Enhancement 1.4

    I finally archive something after a lot of tweak in the include/admin. If I log in and put something in the cart I can see it in WOE But if I put something in the cart without log in I have a error message in in WOE Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /homepages/xx/xxxxx/htdocs/admin/includes/functions/database.php on line 45 select session_id, time_entry, time_last_click from whos_online where session_id='bff9df2d0f86c80c0a3a471b9ba27091' What's up doctor ?
  6. thdt98

    Who's Online Enhancement 1.4

    I have just noticed that if you change DIR_FS_CATALOG in the catalog include it affects as well the admin include.$ Is it ???
  7. thdt98

    Who's Online Enhancement 1.4

    No I have checked $session_data = file(DIR_FS_CATALOG . tep_session_save_path() . '/sess_' . $info); tep_session_save_path gives the path of the session with SESSION_WRITE_DIRECTORY which is the path in the database. The problem I have found that as I wanted to create a directory called sessions inside my root site and not sharing it with others I had to indicated the full path including the root path which is equal to DIR_FS_CATALOG. I will try to remove the tep_session_save_path which is not nice regarding the code.
  8. thdt98

    Who's Online Enhancement 1.4

    Yes it is that my problem: I did a hard coding debug in WOE which gives me: session_path end of file =/homepages/33/d123750328/htdocs/sessions/sess_8e6eccb2b37d9719846a919233eda8e8 DIR_FS_CATALOG = /homepages/33/d123750328/htdocs/ full path = /homepages/33/d123750328/htdocs//homepages/33/d123750328/htdocs/sessions/sess_8e6eccb2b37d9719846a919233eda8e8 You can see that if DIR_FS_CATALOG = something I have a repetition unless the calculation of the rest of the path is wrong. If in the admin/include I put DIR_FS_CATALOG ="" I have problem with images. How can I test the calculation of the session path?
  9. thdt98

    Who's Online Enhancement 1.4

    I think I found the culpit. With debug.php I found a problem with DIR_FS_CATALOG. It seems that the system only find the root as /homepages/xx/xxxxx/htdocs whatever I put in the configure.php even if I remove the define. Do you know where the DIR_FS_CATALOG could be define? It is rather intriguing??
  10. thdt98

    Who's Online Enhancement 1.4

    I found another one OSC Configur.php Debugger I think it is this the one. I am going to try it on at once.
  11. thdt98

    Who's Online Enhancement 1.4

    Pop the Top Is it the Output Queries Debug 1.6 contrib that you are referring to ? I successfully installed it but (sorry for the question) where should I look for ? I see a lot of info ( verry interresting for a another contrib too) but I do not see any major problem there.
  12. thdt98

    Who's Online Enhancement 1.4

    Thanks for the help. I will wait for this debug function and continuing in the meantime to use the version 1.52b which works fine for me. I cannot spent all my hours trying to make this contribution working. I will monitor this forum anyway.
  13. thdt98

    Who's Online Enhancement 1.4

    I wanted to add that: DIR_FS_CATALOG = /homepages/xxxx/xxxxxx/htdocs/ which is expected as it is set up in configure.php tep_session_save_path() = /homepages/xx/xxxxxx/htdocs/sessions/ Therefore DIR_FS_CATALOG is redundant. I do not think it is right for you ???
  14. thdt98

    Who's Online Enhancement 1.4

    Thanks again for the support I cannot do that as the root for my site is after htdocs. I am not allowed to create anything before htdocs. I did the modifications in the two configure.php I do not see anything much happening. WOE is still not happy with this session path, it's working without DIR_FS_CATALOG but I do not have the crash problem with DIRWS_IMAGES anymore. What is this debug process that Medvid is talking about ?
  15. thdt98

    Who's Online Enhancement 1.4

    I totally agree it should be done to the configuration but I think you should give as an example your own configuration system to see if it is matching. I also agree that when you have to play with cache,sessions and cookies it is more for specialist people. Thanks for your time guys Below my configuration system: session path in admin: /homepages/xx/xxxxxxx/htdocs/sessions cache path in admin: /homepages/xx/xxxxxxx/htdocs/cache/ I checked with FTP the session directory is created at the right place and files are created according the visites. I checked as well for the cache and I can only see file like also_purchased-english.cache331 created. I used the same settings for the sessions as you. configure.php in catalog / Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.mysite.com/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', ''); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', ''); define('DIR_WS_HTTPS_CATALOG', ''); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); //Added for BTS1.0 define('DIR_WS_TEMPLATES', 'templates/'); define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/'); define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/'); //End BTS1.0 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '/download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'xxxxxxx'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'xxxxxxxx'); define('DB_SERVER_PASSWORD', 'xxxxxx'); define('DB_DATABASE', 'xxxxxxxxxxx'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> <?php admin // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.tandcandy.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.mysite.com'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/homepages/xx/xxxxxxxx/htdocs'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_ADMIN', '/alacave/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/'); // '/catalog/' define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); // Added for Templating define('DIR_FS_CATALOG_MAINPAGE_MODULES', DIR_FS_CATALOG_MODULES . 'mainpage_modules/'); define('DIR_WS_TEMPLATES', DIR_WS_CATALOG . 'templates/'); define('DIR_FS_TEMPLATES', DIR_FS_CATALOG . 'templates/'); // define our database connection define('DB_SERVER', 'xxxxxxxxxxxxxxxxxx'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'xxxxxxx'); define('DB_SERVER_PASSWORD', 'xxxxxxx'); define('DB_DATABASE', 'xxxxxxxxxxx'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?>
  16. thdt98

    Who's Online Enhancement 1.4

    It is already set up like that. For the other problem I setup my cache and session as you said but it is still not that. I have to remove DIR_WS_CATALOG to allow the system to find the path properly and about 3 minutes I have an error 404. It took a while to settle down when I did the change, I had some problem with the catalog. It seem ok now. I went back to 5.2 version, no problem there.
  17. thdt98

    Who's Online Enhancement 1.4

    My admin has got 3 languages: english, japanese and french. I noticed if I click on Referer Url the system change automaticaly the language according the provenance of the customer which is rather annoying. For instance: you are set in english and you click on a japanese URL you have everything in japanese which is not really what I want. I want to stay in the language that I set up to start with. To eliminate an IP maybe you can look at the Visitors Contribution how they did it.
  18. thdt98

    Who's Online Enhancement 1.4

    Still got problem I found that I have problem with : line 64 if ( (file_exists(DIR_FS_CATALOG . tep_session_save_path() . '/sess_' . $session_id)) && (filesize(DIR_FS_CATALOG . tep_session_save_path() . '/sess_' . $session_id) > 0) ) { $session_data = file(DIR_FS_CATALOG . tep_session_save_path() . '/sess_' . $session_id); line 532 if ( (file_exists(DIR_FS_CATALOG . tep_session_save_path() . '/sess_' . $info)) && (filesize(DIR_FS_CATALOG . tep_session_save_path() . '/sess_' . $info) > 0) ) { $session_data = file(DIR_FS_CATALOG . tep_session_save_path() . '/sess_' . $info); For my case DIR_FS_CATALOG is redundant as tep_session_save_path has already the right path. I tried to remove it but I have got a problem such an error message with footer.php in line 39, DIR_WS_IMAGES is missing and time to time I have an error 1064 if the customer cart is full. Light status does not really work. With the version 1.52 everything is alright. I created my file tmp as recommended but not in the admin, should I do it ? I did a little modification to signal clearly if a customer has put something in his cart by putting in red his name. Is it any interresting ?
  19. thdt98

    Who's Online Enhancement 1.4

    It does work only until the version 1.52b not with the beta one. Thanks
  20. thdt98

    Who's Online Enhancement 1.4

    I went back to 1.36 and 1.4 version and there I can see the Shopping Cart without any problem. ?????? Why????
  21. thdt98

    Who's Online Enhancement 1.4

    I set it up directly in the root folder as I do not have a catalog folder Directory: /homepages/xx/xxxxxx/htdocs/tmp/ Would it be better to put it in the admin folder ?
  22. thdt98

    Who's Online Enhancement 1.4

    I found why the /tmp was empty. I declared /temp but in fact in mycase I have to declare the full root, I have seen something about it in the other pages too. (useless 1and1) Now I have the /tmp full with sessions but still no cart. I will continue then.
  23. thdt98

    Who's Online Enhancement 1.4

    Still researching where the problem lies!!!! I am with 1and1 as a hosting system. Eventhough it is the professionnal package it seems that all sessions are stored somewhere in their system and it is not possible to have access to them. It explains why the /tmp is empty. The only way according to them (their customer service is pretty useless some time, people there do not know what there are talking about) is to record them in the database which I do not want, question of speed. Any ideas about it ? Thanks
  24. thdt98

    Who's Online Enhancement 1.4

    I think I found my problem. It is with the session folder. I guess whos on line cannot find it. My session folder is set up as /tmp (setup in the Sessions section in Configuration section) I notice if I want to see what's inside this folder I cannot see anything. I use either SSH or FTP connection. Anybody to help me to debug this ? I have to say that my site works fine therefore the sessions should work but how and where that is the question
  25. thdt98

    Who's Online Enhancement 1.4

    Is there anybody who managed to have the cart working with the sessions in files instead of mySql ? For me, saving them in files is much faster. Thanks
×