Jump to content

ottogal

Members
  • Posts

    325
  • Joined

Posts posted by ottogal

  1. On 3/25/2024 at 3:01 PM, adrian said:

    Hi @ottogal - not sure why that would happen. How did you update Tracy? I suppose you can't really tell anymore, but I wonder if the permissions for that folder were somehow preventing it from being writable by PHP.

    I used the Update option in Tracy's Module Information from the Admin (and used the Delete button in the module's Settings afterwards).
    In site/config.php I had the permissions set to $config->chmodDir = '0755'; and $config->chmodFile = '0644';
    Maybe this '0644' prevented the update of the file adminer-4.8.1-mysql.php and others.

    Quote

    It shouldn't be related to the PHP version, but you do really need to get that updated - it was EOL'd 5 years ago

    In fact the actual version was 7.2, I didn't recall having upgraded one day. (It's indeed a years old site not touched often later.) But sure, I should update anew.


    Many thanks for your considerations, @adrian!
    ottogal

  2. Hello to this tremendous community!

    The hoster of one of my ProcessWire websites is warning me about a critical vulnerability caused by the Adminer module:

    Quote

    We have found an outdated version of the database management tool Adminer (https://www.adminer.org/) in your account.
    A security vulnerability in this tool could allow attackers to gain full access to your web space (FTP).
    (see https://github.com/advisories/GHSA-2v82-5746-vwqc)

    So I've got some questions:

    (1)
    My installed version of TracyDebugger is v 4.19.33. (I didn't use it much, so never considered an update.)
    Would it be sufficient to update it to v 4.25.22 to fix the problem?
    Or would I need a seperate update of the Adminer module?

    (2)
    I also thought of just uninstalling the module ProcessTracyAdminer.
    When trying this in the Admin, I'm told to manually delete the respective files and directories.
    Presumably I'd want to delete the file ProcessTracyAdminer.module.php
    and, in the panel\ subdirectory, the file AdminerPanel.php and the subdirectory Adminer\.
    Am I right - or is there more to it?

    Any insight is much appreciated!
    ottogal

     

  3. Hi John W.,

    hoping not to misunderstand your data structure:
    I'm sure that the Drs. are not in the Gifts businesss, and Mary's Flower shop ist not involved in physicians' tasks.
    So the hierarchy of your categories should be just like your wanted output (see the attached image).

    Then the individuals (Dr. Adams, Dr. Smith, Mary's Flower Shop) need only to have a reference field to the Secondary Categories - not to the Primary Categories.
    (Since Mental Health is a subcategory of Physicians, Dr. Smith automatically is categorized as Physician...)

    categories.png

    • Like 2
  4. 1 hour ago, psy said:

    @joe_ma

    Maybe something like (untested):

    
    <?php
    
    $content .= '<main class="front">'; // Container for circles
    $content .= '<ul class="topCircles" role="navigation">';  // nav list 
    
    // Output of 16 li elements with links at the chosen postions
    $items = $page->children("limit=16, sort=sort"); // PageArray limited to 16 items. Sorted according to template/page children settings
    
    foreach ($items as $item) {
        if ($item->front_position == $item->index() {
          $content .= '<a href="' . $item->url . '">' . $item->title . '</a>';
        }
        $content .= '</li>';
    }  
                
    $content .= '</ul> 
    </main>'; // Ende Liste und Container
    

    From the PW API Docs: https://processwire.com/api/ref/page/index/

     

    Aren't there missing the opening <li> tags?
    It should be

    foreach ($items as $item) {
    	$content .= '<li>';
    	if ($item->front_position == $item->index() {
    		$content .= '<a href="' . $item->url . '">' . $item->title . '</a>';
    	}
    	$content .= '</li>';
    }


     

×
×
  • Create New...