-
Posts
325 -
Joined
Posts posted by ottogal
-
-
FYI:
Just updating the TracyDebugger module did not affect the files and directories in the panel/ subdirectory.
I had to delete Tracy and reinstall it to get that solved.
(Perhaps because of the PHP version being very old, too: 5.6 ) -
Thank you for the quick reply!
I'm planning to get more into the details of the great Tracy module... -
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:
QuoteWe 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 -
I never used repeaters, so can't help here...
-
Hi joe_g,
I'd recommend to read this fine tutorial written by kongondo a few years ago:
Tutorial: Approaches to categorising site content
That's the right "PW way" doing it, profiting from the great API.
Good luck!
ottogal- 1
-
In your CSS you have
.uk-container { display: flow-root; box-sizing: content-box; max-width: 1200px; /* <<<< */ }
That's the culprit.
- 1
-
I'd try findOne() instead of find().
-
A really great write-up! Should find its way into the Showcase...!
- 2
-
1 hour ago, sujag said:
a search for "Festival für Freunde" https://kulturfeste.de/suche/?q=festival+für+freunde&submit= doesn't get results,
On that page it says
Suche nach "festival für freunde"
It might be a case issue. Usually a search term in double quotes is case sensitive.
-
You could have scrolled to the very bottom of any page in this forum... 😀
- 1
- 2
-
Hi @Gary,
before choosing any of the countless slider scripts out there consider reading Heydon Pickering on inclusive design of sliders:
A Content Slider
(For sure not easy if you are a beginner...)Kind regards
ottogal- 1
-
Salve, @franciccio-ITALIANO
I think you don't need several templates. Just create one template and add the two fields (of type Textarea). Then for each FAQ you create a page that is using this template. -
Hi,
wouldn't you want to calculate the $diff with the unformatted timestamps and just output the result in 'Y' Format? (Or I misunderstand the use case.)
- 1
-
As far as I know in PHP a quotient of integers with a non-integer value is treated as float.
So I'd try to cast the $percent value:
$percent = (int) $percent;
or
$percent = intval($goalNum / $raisedNum);
-
-
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...)- 2
-
Don't worry, nothing offensive here...
-
Saying "consider" and "should not", I tried to give advice - of course there is no "must not"... I'm aware that many and big players don't care, or see some benefits in their way to handle this. They ignore the arguments against it, and that is bad.
-
Please consider that flags should not be used to distinguish languages!
See the notes here, visit the links:
- 2
-
Maybe this would do it:
- 1
-
35 minutes ago, joe_ma said:
$link = next($link);
Should be $link = next($links);
-
1 hour ago, psy said:
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 beforeach ($items as $item) { $content .= '<li>'; if ($item->front_position == $item->index() { $content .= '<a href="' . $item->url . '">' . $item->title . '</a>'; } $content .= '</li>'; }
-
No problem here...
-
On 9/7/2017 at 2:47 AM, vxda said:
You can also pass selector in array, ...
Extremely helpful hint - thank you!
[SOLVED] Vulnerability caused by old version of Adminer
in Tracy Debugger
Posted
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.
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