-
Posts
722 -
Joined
-
Last visited
-
Days Won
6
Everything posted by matjazp
-
I have the structure: Home foo bar1 item1 item2 item21 item22 ... item3 item31 ... bar2 prod1 prod2 prod22 ... ... How to get: bar1 if my current page is item1 or item2 or item21 or item3 or item31 ... bar2 if my current page is prod1 or prod2 or prod22 ... $page->rootParent returns foo of course.
-
To answer myself about colors: I needed TextColor and BGColor in the toolbar, not Colorbutton (and to limit colors I added colorButton_enableMore: false and colorButton_colors: CF5D4E to the Custom Config Options, to allow only one color). JSON validation error also disappeared.
-
If I enter "language: sl" (without ") in Admin > Setup > Fields > body > Input > CKEditor > Custom Config Options, error is thrown: Custom Config Options failed JSON validation. (customOptions) I'm also trying to configure colorbutton. I downloaded required plugins (colorbutton, floatpanel, panelbutton), PW can see them, I added Colorbutton to the toolbar, but colorbutton is not displayed. What am I doing wrong?
-
How to hook before Sanitizer::fileName? I tried $this->addHookBefore('Sanitizer::fileName', $this, 'fn'); in module but my function does not get executed.
-
No, problem is (I think) in my environment: Windows Server 2012 and IIS with PHP. The line if($this->lowercase) $value = strtolower($value); in WireUpload.php (line 216) converts š to ?, then sanitizer converts ? to _ (as it should). mb_strtolower is working fine. Maybe something Ryan should know?
-
gebeer, I'm doing that already, but I have no knowledge if image/file names will have any meaningful names... I'm still having problems with upload names ...
-
How to make File/image description field required? Eg. if file/image is uploaded, than description is mandatory. How to use InputPageName Character replacements with file/image names in backend (admin mode)? That is, how to specify Sanitizer::translate (or number 2) for the $beautify param to the filename function in Sanitizer.php? When uploading files, filename should be sanitized by settings in InputPageName Character replacements, where "š" (for example) should be substituted by "s" but it is not. Running 2.5.4
-
Yes, it was one time error. But since it was written in "red" I assumed it was an error. Thank you for clarification.
-
I went for option B and voila Thank you very much, Horst!
-
As I already pointed out, memory_limit = -1
-
What php limits do I have to look at? Or should I attach my php.ini? Why there were no problems on 2.4.2?
-
I tested with <?php $step = 1; while(TRUE) { $chunk = str_repeat('0123456789', 128*1024*$step++); print 'Memory usage: '. round(memory_get_usage()/(1024*1024)) . 'M<br />'; unset($chunk); } ?> It goes over 400 MB (in task manager, i'm running PW on IIS, no problem so far) before script times out.
-
Yes, I have deleted images from previous error (assets/pageid directory is empty). memory_limit = -1 was already set before upgrade.
-
Thx. I changed $faktor form 2.5 to 2.0 in wire\ImageSizer.php but error is still present.
-
When adding pictures to images field, i get the error "not enough memory to load/resize". It was working fine on 2.4.0, now after upgrade to 2.5.4 error occurs. File size or picture dimension is not relevant. Picture is uploaded, thumbnail is created, but the size of thumbnail is 1 kb and can not be opened with any picture viewer.
-
Error is not presenting anywhere, as far as I can see. Debug mode was on already when the upgrade took place. errors.txt shows: 2014-10-13 05:57:04 guest http://mysite/processwire/login/ SQLSTATE[42S02]: Base table or view not found: 1146 Table 'pwferi.caches' doesn't exist (WireCache) 2014-10-13 05:57:04 guest http://mysite/processwire/login/ SQLSTATE[42S02]: Base table or view not found: 1146 Table 'pwferi.caches' doesn't exist (WireCache) 2014-10-13 05:57:25 user? page? Warning: there appear to be two copies of module "InputfieldCKEditor" on the file system. Please remove the one in /site/modules/ unless you need them both present for some reason. (WireLog) 2014-10-13 05:57:25 user? page? Warning: there appear to be two copies of module "InputfieldCKEditor" on the file system. Please remove the one in /site/modules/ unless you need them both present for some reason. (WireLog) 2014-10-13 05:57:25 admin http://mysite/processwire/ Warning: there appear to be two copies of module "InputfieldCKEditor" on the file system. Please remove the one in /site/modules/ unless you need them both present for some reason. (WireLog) 2014-10-13 05:57:25 admin http://mysite/processwire/ Warning: there appear to be two copies of module "InputfieldCKEditor" on the file system. Please remove the one in /site/modules/ unless you need them both present for some reason. (WireLog) Those warnings about CKeditor are expected and I remove duplicates
-
Table is already there so no need to create it by hand. Site is working like nothing happened I tried and upgraded another site with 2.4.0 and the error is again present, but everything is working.
-
I replaced wire/core and wire/modules (and index.php) but not wire\templates-admin folder. In the wire/modules/System/SystemUpdater there are SystemUpdate1.php, SystemUpdate4.php, SystemUpdate5.php, SystemUpdate6.php, SystemUpdate7.php, SystemUpdate9.php and SystemUpdater.module. Log file system-updater.txt looks fine, no errors there. Yes, I know I shouldn't modify anything under wire, since upgrade will overwrite files, but sometimes it is just quick fix. Still learning a proper way to hook
-
Thx for link. I tried upgrade from 2.4.0 to 2.5.4 this is the error I got: WireCache: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'pw.caches' doesn't exist
-
Looking at InputfieldDatetime.module I see, that Jquery datepicker js file is chosen only if languages are installed. I would like to always use specific datepicker js file and this is easy doable, but I don't want to modify core sources. Is there workaround? Matjaž
-
Hi! I plan to upgrade from 2.4.2 to 2.5.2 (latest stable?). I know one should just replace wire directory (and index.php and .htaccess - I'm on windows with IIS) with new version, but still, should I expect problems? Or should I use upgrade module? I use just a few modules PageListPin, JqueryDatatables, Ckeditor, Fieldtypeselect. I also copied wire\modules\AdminThemeDefault to wire\templates-admin to use with my custom ProcessPageEdit module. I wasn't following the developement and this forum for few months, I just noticed some modules that might be of help (Databasebackups, Siteprofileexporter, ProcesswireUpgrade beta). I'm just a bit confused and need guidance (and help if something goes wrong). Since backup is everything, what is the best approach to make databased backup (and restore later on)?
-
How to render simple link (eg. Cancel) in the form right after the Save button on page edit?
-
Hi! How to write a module (where to hook) if I would like to use page edit link in front-end and perform redirect after successful Save (returning url could also be the same page the link is displayed): $url = $config->urls->admin . "page/delete/?id={$page->id}&modal=1&redirectUrlAfterSave=somewhere"; echo "<a href='$url>edit</a>";
-
Is ProCache supported on IIS?
- 20 replies
-
- cache
- markup cache
-
(and 2 more)
Tagged with:
-
inserting links from link list using tinyMCE
matjazp replied to wobe's topic in Module/Plugin Development
I'm interested ...