-
Posts
258 -
Joined
-
Last visited
Everything posted by kaz
-
I need a calendar, or perhaps better a list of calendar dates. A list of dates would be enough. In frontend it may look like this: Wednesday, 15.01.2025, 09:00 - 12:00 Information on this date above Wednesday, 22.01.2025, 10:00 - 13:00 h Wednesday, 29.01.2025, 09:00 - 12:00 a.m. … that continues for a quarter I have been thinking back and forth about how to implement it in the most convenient way for the client. ProFields, a calendar module, CSV import (ProFields), … I imagine the handling with ProFields Table is quite cumbersome, adding manually rows takes time (!?). How would you do it? The client must update the data each time it expires. It's always the same day of the week, except for some days and vacations.
-
The problem was the ports. If you have other than the standard ports, the existing hosts will no longer work after the upgrade to ver. 7.2, because 7.2 resets the ports to default. What to do? Note down your own ports to be able to change them back after the upgrade. What did I do? I have uninstalled everything to zero. Then I reinstalled ver. 7.1, created the hosts manually and imported the database via phpMyAdmin, updated the config files until everything worked fine. The ports are now standard, so I have again dared to upgrade to ver. 7.2. Successful, everything is running fine. I was unfortunately misled by PHP error messages ;) To summarize: Pay attention of your ports for major upgrades.
-
Is the port saved in projects (database or otherwise)? Perhaps it is due to the difference between port 8891 and the new 8890? If MAMP doesn't work for whatever reason, I need an alternative. Is it possible to restore projects from the “Database” and “Host data (local files)”? edit: yes, it works fine
-
@BitPoet In version 6 I had the view mode icons for switching, in 7 they are missing. It is also missing in the ver. 7 online help. mmhhh? @monollonom localhost works again, the installation was correct. // The new site was set up successfully.
-
I use MAM Pro on macOS. At the last launch I was notified of an upgrade from 7.1x to 7.2, which I confirmed. After the upgrade, when opening sites, also localhost, the following error message appears in the browser: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at you@example.com to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Apache/2.4.62 (Unix) mod_wsgi/5.0.1 Python/3.12 mod_fastcgi/mod_fastcgi-SNAP-0910052141 OpenSSL/1.1.1w Server at my-site.local Port 8891 I have contacted the support and got the following answer: "You may have to completely reinstall the app. https://support.mamp.info/knowledgebase.php?article=170" I have backed up the databases and hosts and reinstalled MAMP. I restored the database and created the hosts manually. So far, so good. Unfortunately, the error message remains almost identical for the hosts, only the port has been changed from 8891 to 8890: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at you@example.com to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Apache/2.4.62 (Unix) mod_wsgi/5.0.1 Python/3.10 mod_fastcgi/mod_fastcgi-SNAP-0910052141 OpenSSL/1.1.1w Server at my-site.local Port 8890 SSL certificates are included with all rights in the keychain administration. Perhaps Processwire cache? I have no idea where else to look. I have the original hosts outside of MAMP in the folder /sites/..., and also SQL backups from phpMyAdmin, – is there a possibility to restore single projects from it? PW reinstallation, importing of a database, ... is there a possibility to rebuild projects with these data?
-
Incorrect structure: “}” or name of the object member is missing
kaz replied to kaz's topic in Getting Started
@TomPich Thanks, that was helpful, error found. I had a } error in schema.org in my prepand file. No idea why I didn't see that. -
Google sends me an e-mail with a reference to an error: Incorrect structure: “}” or name of the object member is missing I searched through my files manually, but can't find any unopened tags. Debug logs shows no error. The page has a problem with a logo that is not displayed when the page is called up. As soon as I click on a link, it is displayed. The code of the embedded logo is correct, I am sure, because it is used frequently. Is there a way to locate such an error localhost?
-
@da² I removed the entries in the field. The error message remains.
-
@da² Yes, I edit pages in the admin area. In the template I have a textarea field / CKEditor. I don't have hooks for the editor. I have custom styles, saved in the CKEditor field > extraAllowedContent. The styles are displayed and works fine. I think that's not the problem. /site/templates/assets/ckeditor/ckeditor.css ckeditor:/site/templates/assets/ckeditor/ckeditor.js With a change of the 'public function set($key, $value) …' code I get the same error message, it makes no difference. I cleared the cache, what else can I do? What more? config: I added own styles to the editor which change the appearance of the RepeaterMatrix links. RepeaterMatrix links doesn't look very nice, so I set them as buttons. No big deal, just CSS, no JS or PHP. $config->styles->add($config->urls->templates . 'assets/css/admin.css'); I activated and deactivated the ACF settings ... the error message remains. When I delete the field and create a new one, will I probably lose all entries from the database?
-
PHP 8.3 ProcessWire 3.0.229 I get this error message in the CK Editor when I select a page for editing: Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/username/Sites/project.com/wire/modules/Inputfield/InputfieldCKEditor/InputfieldCKEditor.module on line 205 How do I get rid of this message?
-
Module Profile Export module (also upgrade PW 2.0 to 2.1)
kaz replied to ryan's topic in Modules/Plugins
PW 3.0.229 ProcessExportProfile 5.0.1 I receive an error message after completing the export (as ZIP): Warning: Undefined array key "success" in /Users/username/Sites/sitename/site/modules/ProcessExportProfile/ProcessExportProfile.module on line 800 I think it's just the confirmation message, I would just like to point out. -
@wbmnfktr Of course, I solved it this way, it's a bit more work. I added URL fields to the global settings. These fields are output as simple ul list, that's it.
-
I write what the client wants. Why discuss a client's wishes. If it can't be implemented technically with PW, I set these menu links manually in an template. The question is answered, thanks.
-
Two doctors would like to have two external links on one page, which are to an external provider for appointments. I have built a redirect template and will display these links in the sidebar.
-
@Jan Romero I have already tried this out. It does not work. It's not a redirect, the link is displayed as a text link in the body. Not what my client needs.
-
I have a URL field that should be redirected externally via target=_blank if ($page->external_url) { $session->redirect($page->external_url); } Is there any solution to add target?
-
@ryan I usually use the project name as the password for the database during the local installation. $config->dbHost = 'localhost'; $config->dbName = 'project'; $config->dbUser = 'project'; $config->dbPass = 'project'; $config->dbPort = '3306'; $config->dbEngine = 'InnoDB'; I may have done it differently for this project; I have the password written down in my notes, but it doesn't work. Because the database is set up in MAMP, I contacted appsolute GmbH for help. I hope that there is a way to renew the password. Thanks for the help!
-
@BitPoet I have the superuser password, I think I probably remember the database password wrong. I will contact MAMP, there will surely be a way to reset the database password?
-
@ryan I have entered the $config dates. salt entries I've taken over from the live version, the online version works fine. The error message remains. I guess I will try to renew the database password in MAMP, I hope that's possible? The other data should fit if salt is the same as the online version.
-
I accidentally overwrote the local config.php with the online version via Transmit. Clearly, the data does not fit locally. I have already updated the correct user, database name and password in these local config, but it does not work. Access is denied: Dangit… Error: Exception: SQLSTATE[HY000] [1045] Access denied for user 'username'@'localhost' (using password: YES) (in wire/core/WireDatabasePDO.php line 505) I don't know what to do now? What, for example, is userAuthSalt and tableSalt? Of course I don't have these data. Is it possible to renew the access data in the local database with PhpMyAdmin? If there's no way to renew the config, how do I keep the project alive? I have the data, the database, only the config is gone.
-
@bernhard Thanks that works great. And also thanks for the training. I am quietly learning from a book by Christian Wenz and Tobias Hauser, but some parts only become clear when I use :)
-
I have an address in the global settings which is displayed on all pages in the sidebar. <?php if ($global->businesshours): ?> <?php include('businesshours.php'); ?> <?php endif; ?> The client asked me to hide the address on only one page, id 1127. I can have an element displayed on a single site via a query, if ($page->id == 1042 ), but can I also exclude a page in an include?
-
@TomPich If it can't be changed, it should be fine.
-
I need to implement double quotation marks with a line break in an if query. my current code: <script type='application/ld+json'> { '@context': 'https://schema.org', 'sameAs' : [ <?php if ($global->facebook): ?><?= $global->facebook; ?>,<?php endif; ?> <?php if ($global->instagram): ?><?= $global->instagram; ?>,<?php endif; ?> <?php if ($global->linkedin): ?><?= $global->linkedin; ?>,<?php endif; ?> and so on ] } </script> and this is how it should look, if there is an entry: <script type="application/ld+json"> { "sameAs" : [ "https://www.facebook.com/company", "https://www.instagram.com/company", "https://www.linkedin.com/company", and so on ] } </script> <?php if ($global->facebook): ?>"<?= $global->facebook; ?>",\n<?php endif; ?> <?php if ($global->google): ?>"<?= $global->google; ?>",<br /><?php endif; ?> The double quotes work because I used single quotes for the the rest. The line break (\n or br) is not generated in source code. The code is output as text, maybe because it hangs in the echo? The source code looks as follows: "https://www.facebook.com/company",<br /> "https://www.instagram.com/company",\n https://www. How do I set line breaks correctly, in this combination?
-
@cstevensjr I have the same question. I can't find it under General Support or Form Builder Support. Where the post was moved to?