DV-JF
-
Posts
294 -
Joined
-
Last visited
-
Days Won
1
Posts posted by DV-JF
-
-
Hi
after updating to PW 3.0.119 I get an error-message everytime I'm visiting the page tree.
Server logfile:2018-12-13 11:51:12 Warning x.x.x.x mod_fcgid: stderr: PHP Notice: Trying to get property of non-object in /var/www/xxx/wire/core/Templates.php on line 497, referer: http://example.net/manager/setup/template/ Apache-Fehler 2018-12-13 11:51:12 Warning x.x.x.x mod_fcgid: stderr: PHP Notice: Trying to get property of non-object in /var/www/xxx/wire/core/Templates.php on line 497, referer: http://example.net/manager/setup/template/ Apache-Fehler 2018-12-13 11:51:12 Warning x.x.x.x mod_fcgid: stderr: PHP Notice: Trying to get property of non-object in /var/www/xxx/wire/core/Templates.php on line 498, referer: http://example.net/manager/setup/template/ Apache-Fehler 2018-12-13 11:51:12 Warning x.x.x.x mod_fcgid: stderr: PHP Notice: Trying to get property of non-object in /var/www/xxx/wire/core/Templates.php on line 498, referer: http://example.net/manager/setup/template/ Apache-Fehler 2018-12-13 11:51:12 Warning x.x.x.x mod_fcgid: stderr: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/xxx/wire/core/Templates.php on line 498, referer: http://example.net/manager/setup/template/ Apache-Fehler 2018-12-13 11:51:12 Warning x.x.x.x mod_fcgid: stderr: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/xxx/wire/core/Templates.php on line 498, referer: http://example.net/manager/setup/template/ Apache-Fehler 2018-12-13 11:51:12 Warning x.x.x.x mod_fcgid: stderr: PHP Notice: Trying to get property of non-object in /var/www/xxx/wire/core/Templates.php on line 497, referer: http://example.net/manager/setup/template/ Apache-Fehler 2018-12-13 11:51:12 Warning x.x.x.x mod_fcgid: stderr: PHP Notice: Trying to get property of non-object in /var/www/xxx/wire/core/Templates.php on line 497, referer: http://example.net/manager/setup/template/ Apache-Fehler 2018-12-13 11:51:12 Warning x.x.x.x mod_fcgid: stderr: PHP Notice: Trying to get property of non-object in /var/www/xxx/wire/core/Templates.php on line 498, referer: http://example.net/manager/setup/template/ Apache-Fehler 2018-12-13 11:51:12 Warning x.x.x.x mod_fcgid: stderr: PHP Notice: Trying to get property of non-object in /var/www/xxx/wire/core/Templates.php on line 498, referer: http://example.net/manager/setup/template/ Apache-Fehler 2018-12-13 11:51:12 Warning x.x.x.x mod_fcgid: stderr: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/xxx/wire/core/Templates.php on line 498, referer: http://example.net/manager/setup/template/ Apache-Fehler 2018-12-13 11:51:12 Warning x.x.x.x mod_fcgid: stderr: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/xxx/wire/core/Templates.php on line 498, referer: http://example.net/manager/setup/template/ Apache-Fehler 2018-12-13 11:51:12 Warning x.x.x.x mod_fcgid: stderr: PHP Notice: Trying to get property of non-object in /var/www/xxx/wire/core/Templates.php on line 497, referer: http://example.net/manager/setup/template/ Apache-Fehler 2018-12-13 11:51:12 Warning x.x.x.x mod_fcgid: stderr: PHP Notice: Trying to get property of non-object in /var/www/xxx/wire/core/Templates.php on line 497, referer: http://example.net/manager/setup/template/ Apache-Fehler 2018-12-13 11:51:12 Warning x.x.x.x mod_fcgid: stderr: PHP Notice: Trying to get property of non-object in /var/www/xxx/wire/core/Templates.php on line 498, referer: http://example.net/manager/setup/template/ Apache-Fehler 2018-12-13 11:51:12 Warning x.x.x.x mod_fcgid: stderr: PHP Notice: Trying to get property of non-object in /var/www/xxx/wire/core/Templates.php on line 498, referer: http://example.net/manager/setup/template/ Apache-Fehler 2018-12-13 11:51:12 Warning x.x.x.x mod_fcgid: stderr: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/xxx/wire/core/Templates.php on line 498, referer: http://example.net/manager/setup/template/ Apache-Fehler 2018-12-13 11:51:12 Warning x.x.x.x mod_fcgid: stderr: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/xxx/wire/core/Templates.php on line 498, referer: http://example.net/manager/setup/template/
Notice: Trying to get property of non-object in /var/www/vhosts/xxx/wire/core/Templates.php on line 497 Notice: Trying to get property of non-object in /var/www/vhosts/xxx/wire/core/Templates.php on line 498 Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/xxx/wire/core/Templates.php on line 498 Notice: Trying to get property of non-object in /var/www/vhosts/xxx/wire/core/Templates.php on line 497 Notice: Trying to get property of non-object in /var/www/vhosts/xxx/wire/core/Templates.php on line 498 Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/xxx/wire/core/Templates.php on line 498 Notice: Trying to get property of non-object in /var/www/vhosts/xxx/wire/core/Templates.php on line 497 Notice: Trying to get property of non-object in /var/www/vhosts/xxx/wire/core/Templates.php on line 498 Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/xxx/wire/core/Templates.php on line 498
PHP Vers. 7.0.33
Any ideas?
-
@gebeer Thank you - I was trying something like this
<?php $input->setUrlSegment(1, "register=1");?>
But this didn't work :-(
Many greets!
- 1
-
Hi, is it possible to show the registration form directly instead of having the login form?
I want to use the registration Form for a call-to-action section, so I'll need the form to be displayed without having to link to another site.
I'll already tried to hook into __execute() but without any success.
Many greets.
-
Hi,
is it possible to deactivate the default language. I've setup a multi-language-site (default=de / en / si / hr / ru ) with a blog system. Some of the news articles will be translated to all languages, some will be only available in specific languages. Therefore I've used the build in function to activate or deactivate the pages under the settings tab.
Everything's working fine but now I need to not dispay an article in default=de language? How would you solve this problem?Many greets...
-
5 hours ago, Macrura said:
template.label is what you want
Thank you , don't know why it wasn't working for me first, perhaps a typo
-
3 hours ago, louisstephens said:
are you using the Profields Page Table module?
Yes I'm using this one.
3 hours ago, louisstephens said:simply add "template" to the list of "Table fields to display in admin"
Yeah I've tried this, but when I do so, the template name is displayed, which doesn't corresponded to the buttons displayed below. This may be very confusing to some editors. Have a look at the screenshot.
To be clear: I want the label to be shown, not the name.
-
Hi,
after searching for nearly an hour, I've found nothing suitable:
Is it possible to display the name / label of the template in the table-view used for a specific page?
$template->name template->name template.name $template->label template->label template.label
None of above does the job ;(
The reason I'm asking: I'm using pagtables for a small layoutsystem and want to display also the template name of the page in the table.
Many greets!
-
On 25.11.2015 at 11:17 PM, Russ Parker said:
Any ideas how to stop it minifying the spaces in CSS calc?
I've the same problem, but found no solution. Can you give me a hint?
Many greets!
-
Hi,
I figured out a strange problem and don't know where to search for the error:
I'm trying to include Processwire into an old website project in order to use PW for a little news-system . Therefore I'm using this code.
<?php namespace ProcessWire; /*Include ProcessWire f. News */ include $_SERVER['DOCUMENT_ROOT'].("/cms/index.php"); /* Set news variable to get news from PW */ $news = wire('pages')->find('template=news-page');?>
Now I'm able to loop through the news and display them as I want to be.
<?php /* Section - Aktuelles */ if(count($news)) { ?> <div id="aktuelles" class="section-wrapper section-std-padding container activateMenu"> <h2 class="sectionhead">Aktuelles</h2> <?php foreach ($news as $n) { ?> <div class="box big-image"> <div class="two-text-columns"> <div> <a href="<?php echo ("/cms" .$n->sing_img->url .$n->sing_img);?>" class="img-popup"><img src="<?php echo ("/cms" .$n->sing_img->url .$n->sing_img);?>" class="left" alt="<?php echo $n->sing_img->description;?>" title="<?php echo $n->sing_img->description;?>" style="width: 100%;"></a> </div> <div> <h2><?php echo $n->title;?></h2> <?php echo $n->body;?> </div> </div> </div> <?php }; ?> </div> <?php }; ?>
These are the settings for the image field $sing_img
And here's the strange thing happening when I try to echo the image:
$n->sing_img->url = /cms/site/assets/files/1019/ $n->sing_img = filename.jpg $n->sing_img->size(200,200) = INTERNAL SERVER ERROR Fehler: Uncaught ProcessWire\WireException: Method Pageimages::size does not exist or is not callable in this context in /.../cms/wire/core/Wire.php:519 Stack trace: #0 /.../cms/wire/core/WireArray.php(2212): ProcessWire\Wire->___callUnknown('size', Array) #1 .../cms/wire/core/Wire.php(386): ProcessWire\WireArray->___callUnknown('size', Array) #2 /.../cms/wire/core/WireHooks.php(698): ProcessWire\Wire->_callMethod('___callUnknown', Array) #3 /.../cms/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Pageimages), 'callUnknown', Array) #4 /.../cms/wire/core/Wire.php(445): ProcessWire\Wire->__call('callUnknown', Array) #5 /.../index.php(120): ProcessWire\Wire->__call('size', Array) #6 {main} thro (Zeile 519 in h.../cms/wire/core/Wire.php)
I've no idea why this is happening, perhaps someone of you can give me a hint!
Many greets, Jens alias DV-JF
-
Hi,
I've searched for a long time, but could not find an answer:
We relaunched a old website with a URL structure like that:
http://www.example.com/?main=notice http://www.example.com/?main=contact http://www.example.com/?main=film http://www.example.com/?main=references http://www.example.com/?main=products&sub=sunb
Is it possible to redirect this old links via Jumplinks? I tiedy to define "?main=notice" as source but this don't work - I get the homepage with the original parameter attached ;-(.
Can you please give me a hint, many greets, Jens alias DV-JF
-
Hi,
I switched my site to https and now I can't get AIOM to running. Here are the errors I'm getting:
Mixed Content: The page at 'https://****/' was loaded over HTTPS, but requested an insecure stylesheet 'warning: A non-numeric value encountered in /mnt/****/site/assets/cache/FileCompiler/site/modules/AllInOneMinify/AllInOneMinify.module on line 713/work/roltek/site/assets/aiom/css_b863322778056fb524ea6127cc06763c_dev.css?no-cache=1503581072'. This request has been blocked; the content must be served over HTTPS. (index):1 Mixed Content: The page at 'https://****/' was loaded over HTTPS, but requested an insecure script 'warning: A non-numeric value encountered in /mnt/****/site/assets/cache/FileCompiler/site/modules/AllInOneMinify/AllInOneMinify.module on line 713/work/roltek/site/assets/aiom/js_656d424f993dafdaf7bd972288171ab2_dev.js?no-cache=1503581072'. This request has been blocked; the content must be served over HTTPS.
When I disable AIOM everything works like it should be. Any ideas?
EDIT:
In order to debug this error I generated a subdomain without HTTPS encription. Now I get the following error:
Warning: A non-numeric value encountered in /***/site/assets/cache/FileCompiler/site/modules/AllInOneMinify/AllInOneMinify.module on line 713 /site/assets/aiom/js_656d424f993dafdaf7bd972288171ab2_dev.js?no-cache=1503583266
EDIT:
I've figured out, that the error only happens, when I'm using PHP Ver. 7.1. with PHP Ver. 7.0. everything works like it should be.
Many greets, Jens alias DV-JF
-
Copy / Clone single pagetable-pages to another page
Hi is it possible to clone / copy a pagetable-page to another "parent"-page with the same pagetable field via the backend?
Many Greets, Jens.
-
I figured out a new problem:
I'm using repeaters in the layout template in order to give the editor the possibility to define some "same looking" boxes. Inside the repeaters there is amongst other things an image field. When I'm trying to resize it via the API like
foreach($page->rep_imgTitleBody as $item) { $img = $item->sing_img->size(600,400)->url; $out = "<img src=\"{$img}\" alt=\"{$item->title}\">"; };
though it works on the frontend but in processwire backend I'm getting an error:
QuoteMethod Pageimages::size does not exist or is not callable in this context
Any ideas?
-
That's really amazing !!! I'm using PW for such a long time but this is the first time I've heard about this feature... Really Cool, thx for the hint, even after years !
-
@MadeMyDay Thank you... Much easier than I thougt
-
Hi,
I'm storing all my layouts under the "Repeater" page. Is it possible to get the parent page, I mean the page which is containing the specific pagetableextended via API?
E.g.: When I'm trying to call
$page->parent->name
in lay_columns.php (one of files to render the output) it returns "repeater" wich is obviously because the repeater page is the parent. But I want to get the "original" parentpage where the pagetableextended field is stored.
I'hope you understand me.
Many greets!
-
On 20.5.2017 at 5:38 PM, horst said:
How did you install / update it?
Update a previous version or first install?
manually or via backend or ...?
I deleted an older version manually and than tried to install the newer version via backend.
-
Hello Horst,
when I'm trying to install the new version I get an error:
( ! ) Notice: Undefined index: sharpening in D:\wamp\www\zaub\site\modules\CroppableImage3\FieldtypeCroppableImage3\FieldtypeCroppableImage3ConfAdaptor.php on line 96 Call Stack # Time Memory Function Location 1 0.0040 374752 {main}( ) ...\index.php:0 2 0.5650 13487256 ProcessWire\Wire->execute( ) ...\index.php:55 3 0.5650 13487528 ProcessWire\Wire->__call( ) ...\index.php:55 4 0.5650 13487528 ProcessWire\WireHooks->runHooks( ) ...\Wire.php:442 5 0.5650 13487904 ProcessWire\Wire->_callMethod( ) ...\WireHooks.php:698 6 0.5650 13487904 ProcessWire\ProcessPageView->___execute( ) ...\Wire.php:383 7 0.6430 14965016 ProcessWire\Wire->render( ) ...\ProcessPageView.module:205 8 0.6430 14965064 ProcessWire\Wire->__call( ) ...\ProcessPageView.module:205 9 0.6430 14965064 ProcessWire\WireHooks->runHooks( ) ...\Wire.php:442 10 0.6440 14966448 ProcessWire\Wire->renderPage( ) ...\WireHooks.php:782 11 0.6440 14966720 ProcessWire\Wire->__call( ) ...\WireHooks.php:782 12 0.6440 14966720 ProcessWire\WireHooks->runHooks( ) ...\Wire.php:442 13 0.6440 14967096 ProcessWire\Wire->_callMethod( ) ...\WireHooks.php:698 14 0.6440 14967096 ProcessWire\PageRender->___renderPage( ) ...\Wire.php:383 15 0.6480 14970688 ProcessWire\Wire->render( ) ...\PageRender.module:514 16 0.6480 14970736 ProcessWire\Wire->__call( ) ...\PageRender.module:514 17 0.6480 14970736 ProcessWire\WireHooks->runHooks( ) ...\Wire.php:442 18 0.6480 14971576 ProcessWire\Wire->_callMethod( ) ...\WireHooks.php:698 19 0.6480 14971576 ProcessWire\TemplateFile->___render( ) ...\Wire.php:380 20 0.6480 14990608 require( 'D:\wamp\www\zaub\site\templates\admin.php' ) ...\TemplateFile.php:268 21 0.6490 14991328 require( 'D:\wamp\www\zaub\wire\modules\AdminTheme\AdminThemeDefault\controller.php' ) ...\admin.php:13 22 0.6490 15028512 require( 'D:\wamp\www\zaub\wire\core\admin.php' ) ...\controller.php:13 23 0.6590 15076312 ProcessWire\Wire->execute( ) ...\admin.php:113 24 0.6590 15076360 ProcessWire\Wire->__call( ) ...\admin.php:113 25 0.6590 15076360 ProcessWire\WireHooks->runHooks( ) ...\Wire.php:442 26 0.6590 15076736 ProcessWire\Wire->_callMethod( ) ...\WireHooks.php:698 27 0.6590 15076736 ProcessWire\ProcessController->___execute( ) ...\Wire.php:380 28 0.6770 15619400 ProcessWire\Wire->executeEdit( ) ...\ProcessController.php:244 29 0.6770 15619448 ProcessWire\Wire->__call( ) ...\ProcessController.php:244 30 0.6770 15619448 ProcessWire\WireHooks->runHooks( ) ...\Wire.php:442 31 0.6770 15619824 ProcessWire\Wire->_callMethod( ) ...\WireHooks.php:698 32 0.6770 15619824 ProcessWire\ProcessModule->___executeEdit( ) ...\Wire.php:380 33 0.6810 15622488 ProcessWire\ProcessModule->renderEdit( ) ...\ProcessModule.module:1136 34 0.7190 15742248 ProcessWire\Wire->getModuleConfigInputfields( ) ...\ProcessModule.module:1213 35 0.7190 15742520 ProcessWire\Wire->__call( ) ...\ProcessModule.module:1213 36 0.7190 15742520 ProcessWire\WireHooks->runHooks( ) ...\Wire.php:442 37 0.7190 15742912 ProcessWire\Wire->_callMethod( ) ...\WireHooks.php:698 38 0.7190 15742912 ProcessWire\Modules->___getModuleConfigInputfields( ) ...\Wire.php:383 39 0.7260 15747744 call_user_func:{D:\wamp\www\zaub\wire\core\Modules.php:3582} ( ) ...\Modules.php:3582 40 0.7260 15747744 ProcessWire\FieldtypeCroppableImage3::getModuleConfigInputfields( ) ...\Modules.php:3582 41 0.7320 15807072 ProcessWire\FieldtypeCroppableImage3ConfAdaptor->getConfig( ) ...\FieldtypeCroppableImage3.module:478
Can you help me? I've tried to search for it, but found nothing.
ProcessWire 3.0.62 © 2017
Many greets!
-
Hi,
I'm wondering if it's possible to change the date of the comment in backend without using the API. A customer of mine wants to adopt some comments from Facebook manually and therefore he needs to change the date?
Many greets DV-JF alias Jens.
-
Hello,
I'm trying to get FormTemplateProcessor work with the fieldtype "Select Options".
The problem is that FormTemplateProcessor takes the name of the field and sends this information via email.
$value = htmlentities($this->contact->get($field->name));
No problem for all other fields, but when it comes to the "Select Options Field" only the ID's were send via mail.
Is there a way to send the title instead of the ID? I've got no ideas - some hints are welcome
Many greets, Jens alias DV-JF.
-
Same problem for me.
I've manually updated an old site from 2.3 to 2.7.1 and get this error:
Error loading GitHub branches https://api.github.com/repos/ryancramerdesign/Processwire/branchesAny ideas?
-
Maybe it is possible for you to switch to croppableImages as it returns pageimages that you can resize further. The original CropImage does return a URL, not a pageimage object.
Hey horst,
thank you for this hint! Exactly, what I've searched for!
-
Hi,
I'm using this function to resize my pictures for responsive images
<?php function respImg($img,$description="",$class="") { $mini = 200; $small = 400; $medium = 640; $large = 960; $xlarge = 1280; $xxlarge = 2400; $out = "<img src='{$img->width($mini)->url}' data-sizes='auto' data-srcset=' {$img->width($mini)->url} {$mini}w, {$img->width($small)->url} {$small}w, {$img->width($medium)->url} {$medium}w, {$img->width($large)->url} {$large}w, {$img->width($xlarge)->url} {$xlarge}w' {$img->width($xxlarge)->url} {$xxlarge}w' alt='{$description}' class = '{$class} lazyload' /> "; return $out; };?>
When I try to commit a cropped image I get following error:Fatal error: Call to a member function width() on a non-object in D:\xxxxxx\site\templates\_functions.php on line 80
Is it possible to crop the via module cropped images again in order to deliver responsive images? What would you do?
Many greets, Jens.
-
Hi,
I'm using this module to display some different sections on the homepage of a webseite like in this example: https://processwire.com/talk/topic/7459-module-pagetableextended/#entry71793
My home template file looks like this:
$page = $pages->get(1021); // This is a Site for storing all sections of the homepage foreach($page->children as $child) { require($child->template .'.php'); }; $mainContent = $out;
Here's an example of one of my child-templates:
<?php /* section-slider.php - Template File for a Slider*/ // Check if Back- or Frontend if(isset($options['pageTableExtended'])){ $useMain = false; $out = ""; $addJS = ""; } // Check if is in frontend else { $page = $child; }; // Starting output $images = $page->images; $mini = 320; $small = 640; $medium = 900; $large = 1200; $xlarge = 1680; $out .= " <section id='{$page->name}' class='slides'>"; foreach($images as $img) { $out .= "<img src='{$img->width($mini)->url}' srcset='{$img->width($mini)} {$mini}w, {$img->width($small)} {$small}w, {$img->width($medium)->url} {$medium}w, {$img->width($large)->url} {$large}w, {$img->width($xlarge)->url} {$xlarge}w' alt='{$img->description}'>"; }; $out .= " </section>"; // Load JS and CSS Files $inlineJS .= " <script> $(function() { $('.slides').slidesjs({ width: 1200, height: 900, navigation: { effect: 'fade' }, pagination: { effect: 'fade' }, effect: { fade: { speed: 3000 } }, play: { active:true, auto: true, swap: false, effect: 'fade', pauseOnHover: false, interval: 5000 } }); }); </script>"; array_push($cssFiles,"css/slides.css"); array_push($jsFiles,"js/jquery.slides.min.js"); // Check if backend if(isset($options['pageTableExtended'])){ echo($out); }
Two questions:
1. I'm wondering if it's possible to redirect the children of the site to the parent-site or to the homepage, when a user tries to visit the childpage directly, so that it's not possible to visit the child-page directly.
2. How are the child-pages sorted? When I try to sort them via drag&drop here:
this don't effect the frontpage.
I've to sort the child-pages to get the correct sortorder here:
Where can I change it, so that the childpages are sorted correctly?
Many greets, DV-JF alias Jens.
Add export users hook to user list, page lister
in API & Templates
Posted
Did you managed this task ? I'm trying nearly the same thing - would be nice to get some hints.