modifiedcontent
Members-
Posts
289 -
Joined
-
Last visited
Everything posted by modifiedcontent
-
Horizontal scroll bar with UIkit admin
modifiedcontent replied to modifiedcontent's topic in General Support
Thanks bernhard, but no, I just get the horizontal scrollbar in every view, full screen on a laptop. The scrollbar also doesn't really scroll to anything; something is 1 or 2% over somewhere.- 4 replies
-
- uikit 3
- admin theme boss
-
(and 2 more)
Tagged with:
-
Horizontal scroll bar with UIkit admin
modifiedcontent replied to modifiedcontent's topic in General Support
Thanks @diogo - for one random admin page that identifies the following elements: <div id="pw-panel-container-1" class="pw-panel-container pw-panel-container-closed pw-panel-tab pw-panel-left" data-href="/admin/page/?modal=panel&pw_panel=1" style="outline: red dotted 1px !important;"><a class="pw-panel-button pw-panel-button-closed ui-button ui-state-default pw-panel-button-text pw-panel-button-hidden" href="/admin/page/?modal=panel&pw_panel=1" style="right: -46px;"><small class="ui-button-text"><i class="fa fa-fw fa-tree"></i><span>Tree</span></small></a></div> <div id="pw-panel-container-2" class="pw-panel-container pw-panel-container-closed pw-panel-tab pw-panel-left pw-panel-reload" data-href="https://mywebsite.com/?modal=panel&pw_panel=1" style="outline: red dotted 1px !important;"><a class="pw-panel-button pw-panel-button-closed ui-button ui-state-default pw-panel-button-text pw-panel-button-hidden" href="https://mywebsite.com/?modal=panel&pw_panel=1" style="right: -46px;"><small class="ui-button-text"><i class="fa fa-fw fa-eye"></i><span>Page View</span></small></a></div> I have tried changing widths and paddings etc., but nothing makes the horizontal scrollbar disappear. I know I can just put overflow-x: hidden somewhere, but tried that once and it caused a problem somewhere else and I didn't want to spend more time on it. Isn't this a (known) bug in UIkit? I vaguely remember seeing something like that the first time I looked into this.- 4 replies
-
- uikit 3
- admin theme boss
-
(and 2 more)
Tagged with:
-
Small annoyance: I get a horizontal scrollbar in UIkit admin area - or actually Admin Theme Boss based on Uikit 3. I tried to fix it with CSS, but had trouble isolating/targeting it and don't want to mess with module or core files. I think this issue has been reported before. Is there a recommended fix?
- 4 replies
-
- uikit 3
- admin theme boss
-
(and 2 more)
Tagged with:
-
Issue 1: Why do I get lots of random Russian (?) text when I try to look up addresses? And the location search results are awful; the system suggests random street addresses (with lots of Russian) when you type in something basic like 'London, England'. Full addresses seem to work better, but only without postal codes - 'nothing found' when you try to search with postal codes included. Issue 2: Maps show up in the admin area, but not on the front-end. I have another version of the same site where they do show up on the front-end without problems, so am a bit puzzled where the problem could be. What are typical causes I could check? Edit: The problem with the map not showing up on the front end (Issue 2) had something to do with this error showing up in Chrome Inspect/DevTools: Uncaught TypeError: $ is not a function at (index):529 Something with jQuery. The error disappeared when I copied module files from another site where Leaflet Map did work. Not sure where the cause of the error is exactly.
-
[SOLVED] Pages get created as untitled
modifiedcontent replied to modifiedcontent's topic in General Support
Thanks for response Pip. The template's name is 'event' and I just create the usual way via admin, Add New etc. It's probably something dumb in my particular templates. I may have old code/configuration somewhere that does something with the slug creation. Can't find where. Edit: Nevermind. I found it. In the parent template 'events' under Family there was a 'name format for children' defined. Also 'allowed template(s) for children' was not set - weird that page creation was possible at all... -
Annoying small problem; when I create pages for a certain type/template, they initially get created with the slug /untitled and empty title and name fields on the next page. I have to enter the title and slug again to create the page. Has anyone seen that before? Why does it happen and how can I fix it? Same issue reported here, with no solution.
-
I had a simple 'Delete My Account' link for users in my site that used to work fine, with a function like this: But it no longer works, after upgrades I guess. I get a fatal server error: cannot be deleted: it is the current page being viewed, try $pages->trash() instead Or when I use trash(), I get: Exception: This page (id=XXXX) may not be placed in the trash That error is thrown in core/PagesTrash.php by a check for isDeleteable(). I can't find info what makes a page 'deleteable' or not. What is now the recommended way to do this?
-
Has anyone else seen front-end editing not working on certain pages? When I try to make an edit and click Save, I get a javascript pop-up with 'No changes to save'. Anyone have any idea what causes this? Javascript conflict maybe?
-
1054 Unknown column field_fieldname.filedata in field list
modifiedcontent replied to Klenkes's topic in General Support
Did anyone ever find out how to solve this? Or at least make that error disappear... Edit: Just switched from Reno admin theme to UIkit. I think the error message is now gone. -
A few more points to watch out for. You need to copy the Authentication Salt in config.php to be able to use your login from the old database: /** * Installer: User Authentication Salt * * Must be retained if you migrate your site from one server to another * */ Installed modules and customizations can also mess up things. After simply uploading my backed-up /site folder into the new installation, I got a scary fatal server error. To step back I restored the /site folder of the fresh installation. I had replaced the fresh install database with my original backed-up database. That worked fine. I see all my old content and templates etc. in the admin area. Next I have uploaded all modules from the backed-up /site/modules to the new installation /site/modules. In the back-end I have clicked Refresh in Modules. It finds the modules and installs them. You may have to repeat Refresh a few times. I still keep getting this error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_headshot.filedata' in 'field list' After uploading the rest of the backed-up /site folder, everything else seems to work fine.
-
Image upload via 'choose file' from any source
modifiedcontent replied to modifiedcontent's topic in Wishlist & Roadmap
Cool! Looking forward to trying this. Thanks gebeer -
Another dumb question; what am I supposed to do with the following in config.php: I have tried uncommenting '@var Config $config', but that breaks stuff. And what is '@var bool'?
-
Is there no quick way in Processwire to just clear all caches in one go? I keep running into caching problems and then have to turn on/off caching per templates. I have also read that you can delete the contents of the cache folder, but think it broke my site the last time I tried that. I am now troubleshooting another issue that may or may not have anything to do with caching. It would just be nice if I could just eliminate that as a cause, but wouldn't even know which template/cache to try to clear.
- 3 replies
-
- processwire
- filecompiler
-
(and 1 more)
Tagged with:
-
What is currently the best way to move a Processwire site to a new server? I have to upgrade my VPS, from CentOS 6 to CentOS 8. I have several relatively complicated Processwire websites. I am currently downloading all the files via FTP. I will export databases next. I guess I'll use Export Site Profile. Or had that been replaced by something else? New modules that I missed? Or will the FTP'ed files + exported database be enough? Just copy them 1-on-1 to the new server and it will all work? What can go wrong? What are the pitfalls to watch out for?
-
required file and directory permissions
modifiedcontent replied to sluggo's topic in Getting Started
Thanks wbmnfktr, I had seen that one. That page gives a lot of general, very useful background info on the how and why of permissions, but I was looking for a quick overview/cheatsheet with recommended settings for each processwire directory/file. -
required file and directory permissions
modifiedcontent replied to sluggo's topic in Getting Started
Is there an overview/cheatsheet anywhere with recommended permissions for each folder and file? I know permissions are set at installation, but I probably messed things up a bit in a server upgrade or PHP 7.3 has different requirements. I now keep running into permission issues. -
Answering my own question: I got directory/files ownership/permission screwed up on /site/assets/cache. Or PHP7.3 handles those differently? /cache and /modules should be writable. I had both on 755, but guess ownership was wrong. Doing this via ssh fixed it: chown -R myserveruser site/assets/cache chown -R myserveruser site/modules chmod -R a+w site/assets/cache chmod -R a+w site/modules Are there other folders/files I should double-check?
- 1 reply
-
- 1
-
-
- cache
- filecompiler
-
(and 3 more)
Tagged with:
-
I had upgraded my Apache configuration to include PHP7.2 and PHP7.3 for a Laravel-based script on the same server. Somehow it/I messed up a previously fine Processwire site, in a very confusing way. The site still looks fine, but editing template files has no effect whatsoever. It is stuck on some kind of cached version. I have already disabled PHP7's OPcache, cleared browser caches, etc, with no effect. The pages now apparently come from PW's assets/cache/FileCompiler folder, even though I never enabled template caching for this site. I have tried adding "namespace ProcessWire;" to the top of the homepage template file, but then I get this fatal error: My functions.php file pulls data in from another Processwire installation on the same VPS with the following line: $othersitedata = new ProcessWire('/home/myaccount/public_html/myothersite/site/', 'https://myothersite.com/'); That apparently still works fine; the site still displays data from the other installation, but via the "cached" template that I am now unable to change. I don't know where to start with this mess. Does any of this sound familiar to anyone? Any pointers in the right direction would be much appreciated. Edit: Adding "$config->templateCompile = false;" to config.php results in the same fatal error as above.
- 1 reply
-
- cache
- filecompiler
-
(and 3 more)
Tagged with:
-
Why doesn't this work? $members = $pages->find("template=user"); foreach($members as $bogus) { // don't use $user if ( $bogus->firstname === $bogus->lastname ) { $bogus->delete(); } } I get this error: If I echo $bogus->fullname, I get a nice list of spam accounts where the first and last name are the same. There has to be a way to let PW allow me to delete them. I have also tried $users->delete( $bogus ) and $users->delete( $bogus, true ) and a few other variations, but keep getting the same error message. Line 1017 is this: if(!$this->isDeleteable($page)) throw new WireException What makes a page not deletable? Any ideas? I have a similar bit that deletes user accounts with numbers in the name fields: $members = $pages->find("template=user"); foreach($members as $bogus) { if ( preg_match('/[><\-0-9]/', $bogus->name ) ) { $users->delete( $bogus ); } } That one works fine. What am I getting wrong with the other one? Edit: I think I figured it out. $firstname === $lastname would also be TRUE for two empty fields, so I guess PW has wisely made that not deleteable somewhere. So you have to check first if either field is set at all. The following seems to work: $members = $pages->find("template=user"); foreach($members as $bogus) { // don't use $user if ( $bogus->firstname && $bogus->firstname === $bogus->lastname ) { $users->delete( $bogus ); } } Or still wrong?
- 21 replies
-
I finally found a better framework than ProcessWire.
modifiedcontent replied to alxndre's topic in Dev Talk
But is it serverless? -
Released: Street Address Fieldtype + Inputfield
modifiedcontent replied to netcarver's topic in Modules/Plugins
To me the beauty of Processwire is that it makes no assumptions how you use it. This module breaks with that logic a bit, probably unnecessarily. I have started editing the css. That is no big deal. I'll look into how to use this field as input for the map marker modules, make them work together. btw, I hope your health problems are under control. Either way, take care. -
Released: Street Address Fieldtype + Inputfield
modifiedcontent replied to netcarver's topic in Modules/Plugins
I need some kind of address field type to store street addresses for events - the map marker modules produce unusable garbage addresses... This module looks solid and probably does what I need for my case. Why does the module assume it will be used for postal mailings? Is that really necessary? Couldn't the UX be a bit more usage agnostic and use the regular admin fonts etc.?