-
Posts
2,318 -
Joined
-
Last visited
-
Days Won
2
Everything posted by pwired
-
Version 2.5: errors: maximum function nesting & ...appears to be forged
pwired replied to gunter's topic in General Support
Had the same error a couple of days ago Like adrian just posted, open php.ini scroll to [xdebug] add: xdebug.max_nesting_level = 200 -
Yes it does. With shift - control - v, your pasted text is format-free. I use it in combination with autohotkey to make it work global. "^+v"
-
Folder tree with client emails (eml) and word invoice template (doc) Fill in the invoice template doc, print as pdf, send to client. Payments are also printed as pdf and saved in the clients folder. Folders with orange color means not payed, green color is payed. Blue color is pending, black color is having issues.
-
I call it constructive criticism with the goal to make things better - many times giving rise to things as you mention: negative reaction, a surprise, is it a "developers" type reaction, etc, etc, the list goes on. I almost decided to stop with it, but seeing you talk about it so openly made me change my mind.
-
Dumb me, I used the = instead of the .= Your code is working, thanks!
-
I installed pw 2.5 and instead of outputting 1 picture I want to output 3 pictures on top of the sidebar. This is the original code that outputs 1 picture: if(count($page->images)) { // if the page has images on it, grab one of them randomly... $image = $page->images->getRandom(); // resize it to 400 pixels wide $image = $image->width(400); // output the image at the top of the sidebar $sidebar = "<img src='$image->url' alt='$image->description' />" . "<blockquote>$image->description</blockquote>" . $page->sidebar; } Here I changed the code a bit to output 2 pictures on top of the sidebar: if(count($page->images)) { // if the page has images on it, grab the first two of them... $image1 = $page->images->first(); $image2 = $page->images->eq(1); // resize it to 400 pixels wide $image1 = $image1->width(400); $image2 = $image2->width(400); // output the image at the top of the sidebar $sidebar = "<img src='$image1->url' alt='$image1->description' />" . "<blockquote>$image1->description</blockquote>" ."<img src='$image2->url' alt='$image2->description' />" . "<blockquote>$image2->description</blockquote>" . $page->sidebar; } The above is working but of course it should be working with a foreach which I tried here: if(count($page->images)) { // if the page has images on it, loop through them... foreach($page->images as $image) { $image = $image->width(400); $pictures = "<img src='$image->url' alt='$image->description' />" . "<blockquote>$image->description</blockquote>" ; } // output the images at the top of the sidebar $sidebar = $pictures . $page->sidebar; } However this code with the foreach only shows the last picture while I have 3 of them Anyone knows what is wrong ?
-
Like one of your cool dedicated sites to pw
- 206 replies
-
- 1
-
-
- standarisation
- templates
-
(and 1 more)
Tagged with:
-
Nope, have something else in mind.
- 206 replies
-
- standarisation
- templates
-
(and 1 more)
Tagged with:
-
I have read somewhere about a migrator. Not sure can not find it right now but sure somebody here can. If not will post back. I have seen that header.inc and footer.inc have been disappeared so maybe something will have changed when upgrading from older version. Anyway 2.5 is the best ever.
-
The latest pw 2.5 even has a multi-language installer included with a language selection nav bar.
-
Being a bit more specific will help you to find the right person.
-
Posts like 144 should not fade away in the forum. Many already have. Summarizes and clarifies so much. Will find something.
- 206 replies
-
- 1
-
-
- standarisation
- templates
-
(and 1 more)
Tagged with:
-
Constructive criticism has nothing to do with war or letting people give their opinion. I always thought it is part of making things better.
-
Every new website that is made known in this forum seems to get only likes. Doesn't matter how the website looks, doesn't matter what is written or how it is written. There seems to be no place for constructive criticism. It is immediately taken as an act for saying something ugly. Of course now that I bring this up you will say that this is not true. Well then, go back as far as you can in this forum and see for your self.
-
If it is about a personal or a hobby website, fine. But if you are writing about Craft, Modx and Processwire you should stay on the objective side and not your believes. It is part of making an objective website for visitors and not a subjective website for your self.
-
This maybe clear to the writer but for visitors such a line takes away credit of the website, unless added somewhere in the headline. Saying something on a website is a different thing than talking about it between people you know.
-
I believe ---- that is subjective the best ---- that is absolute (2 times) You should rethink about that headline. Did you consider to use US spelling for the word favourite ?
-
You were right about a limit. Googled it: adding the following to php.ini fixes the issue. xdebug.max_nesting_level = 200 Restarted all services, edited something and now the error has gone.
-
Xdebug is de-activated, I am running a default setup of wamp 2.4
-
Maybe my wamp is causing this error message, could it be the php version 5.4.1.6 ?? will check again with an online test server.
-
Just installed the new pw 2.5 and noticed that the language order is English - German - Finnish Noticed can not delete the default language but how to change into other language ? When I just try to add a language or edit the name and title of a language, I end up with this error: Error: Maximum function nesting level of '100' reached, aborting! (line 113 of C:\wamp\www\knoblauch\wire\core\WireData.php) Despite this error, when I go back I see the new language name and title have been added. I don´t want to delete the fi language but change it into the es language
-
What's the best way to "not count" a visit in Google Analytics?
pwired replied to OrganizedFellow's topic in Dev Talk
Your welcome Yes, I also download hosts files with latest updates for blocking spam and ads. Thanks for link btw. Nowadays I use firebug to trace back unwanted ads and forced video advertisements with difficult to find url´s. -
Did some button voices in the past. TextAloud gives you good quality text to speech. You can find many good quality TTS voices at neospeech, violetta for spanish, jennifer for english, etc. etc. Also AT&T Natural voices.
- 21 replies
-
- 1
-
-
Moving to different server: SQLSTATE[28000] [1045] Access denied
pwired replied to bytesource's topic in General Support
Multiple posts and answers already in the forum. -
What's the best way to "not count" a visit in Google Analytics?
pwired replied to OrganizedFellow's topic in Dev Talk
Computers in an Office are usually behind the same router ip, so in that case: Go to the Admin Section of Google Analytics Select the Filters Tab Select New Filter Select ‘Create new Filter’ Name your filter, place the router IP address and save. In case of a dynamic router ip usually your ISP only changes the last two ip4 blocks so you can enter an ip range for them. If the computers are behind different routers or otherwise connected to the internet then: Simply edit the hosts file and bypass the DNS server. On Linux: Path to the hosts file => /etc/hosts Open a terminal window and type: sudo nano /etc/hosts (you can substitute any other text editor) enter your password On Windows: first go to file options and set: 1.show hidden folders and files 2.Unhide extensions for known file types 3.Unhide protected operating system files 4.In case the hosts file is owned by the system, in properties you have to open the security tab and edit owner ship to the computer user. Path to the hosts file: On windows => %systemroot%\system32\drivers\etc\ If windows was installed in it's default location then that would be: C:\Windows\System32\Drivers\Etc\Hosts Easiest way is to open with notepad. Example of how you could edit your hosts file: # My filters 127.0.0.1 www.google-analytics.com 127.0.0.1 google-analytics.com 127.0.0.1 ssl.google-analytics.com The hosts file has no file extension so When finished editing save as all files and put hosts between quotes: "hosts" Or save as hosts.txt go back to it's location and remove the .txt Don't forget to revert back the 4 windows settings above. Done. Another good use of the hosts file is to block unwanted video advertisements in your browser as they eat up your monthly surfing limit (usually 1 or 2 Gb) when you are mobile with an internet dongle and sim card. (or your montly data limit on your smartphone) For smartphones go here: (also usable for pc's) https://tools.google.com/dlpage/gaoptout or here https://adblockplus.org/en/android https://addons.mozilla.org/mk/android/addon/no-google-analytics/