Jump to content

tcnet

Members
  • Posts

    55
  • Joined

  • Last visited

  • Days Won

    2

tcnet last won the day on July 1

tcnet had the most liked content!

Contact Methods

  • Website URL
    https://tech-c.net/

Recent Profile Visitors

356 profile views

tcnet's Achievements

Full Member

Full Member (4/6)

39

Reputation

  1. Please show me an example where your dump() function returns the output. I got it only to work with echoing the output which is not what I want.
  2. Session Viewer is a module for ProcessWire to list session files and display session data. This module is helpful to display the session data of a specific session or to kick out a logged in user by simply delete his session file. After installation the module is available in the Setup menu. The following conditions must be met for the module to work properly: Session files Session data must be stored in session files, which is the default way in ProcessWire. Sessions stored in the database are not supported by this module. The path to the directory where the session files are stored must be declared in the ProcessWire configuration which is by default: site/assets/sessions. Serialize handler In order to transform session data easier back to a PHP array, the session data is stored serialized. PHP offers a way to declare a custom serialize handler. This module supports only the default serialize handlers: php, php_binary and php_serialize. WDDX was dropped in PHP 7.4.0 and is therefore not supported by this module as well as any other custom serialize handler. Which serialize handler is actually used you can find out in the module configuration which is available under Modules=>Configure=>SessionViewer. Session data The session data can be displayed in two different ways. PHP's default output for arrays print_r() or by default for this module nice_r() offered on github: https://github.com/uuf6429/nice_r. There is a setting in the module configuration if someone prefers print_r(). Apart from the better handling and overview of the folded session data the output of nice_r() looks indeed nicer. Links ProcessWire module directory github.com
  3. If you exchanged the module file then the exception will occurring in a different line ynd you will not get the same error message. If you deleted table process_pageviewstat_main and installed version 1.1.1 then process_pageviewstat_main will recreated with column usr. But in this case you will not get the same error message. I guess you loading your pages from the browser cache.
  4. Did you replaced the file or not? What's the error message after you replaced the file? How you cleaned the database? Did you deleted the table process_pageviewstat_main in the database or not? Did you followed my instruction: Please delete ProcessPageViewStat and rename .ProcessPageViewStat to ProcessPageViewStat. Then execute the upgrade again. If you get the error again then delete ProcessPageViewStat and rename .ProcessPageViewStat to ProcessPageViewStat and uninstall the module from then module page and install it again.
  5. Did solved the problem? You can also replace the module file in the attachment of this message. It encloses the database execution in line 376 with a try-catch. So you are able to click the refresh button without error message. The refresh button should call the upgrade funtion or something is wrong in your PW. ProcessPageViewStat.module
  6. Or you have to add a new int column to process_pageviewstat_main named usr. This is what the upgrade function does.
  7. When you deleted the .ProcessPageViewStat already, you have to delete process_pageviewstat_main in the database before you install it again.
  8. Ok, I see the problem. Please delete ProcessPageViewStat and rename .ProcessPageViewStat to ProcessPageViewStat. Then execute the upgrade again. If you get the error again then delete ProcessPageViewStat and rename .ProcessPageViewStat to ProcessPageViewStat and uninstall the module from then module page and install it again.
  9. Press the Refresh button before you install it again.
  10. "removed module from database" How did you do that? Just deleted the tables? You will get the same error! You have to uninstall it if you want to install it from the scratch!
  11. Seems that ___upgrade($fromVersion, $toVersion) don't get called. You can use the old version. Just rename .ProcessPageViewStat to ProcessPageViewStat
  12. If you realy clicked "Upgrade" then ___upgrade($fromVersion, $toVersion) have been fired and you would not have problems. Exists a directory named .ProcessPageViewStat in the module directory? Please note the dot before the module name. If not rename the module to .ProcessPageViewStat then go to the module page, rename it back to ProcessPageViewStat and then click Refresh.
  13. This happened because you didn't realy upgrade it. You just replaced the files. In this case function ___upgrade($fromVersion, $toVersion) will be never called! Click on Modules and then on Refresh in the top right corner. This will fire the ___upgrade function.
  14. No, I haven't forgotten. The module is still under review. After approval I'll post all links.
×
×
  • Create New...