-
Posts
212 -
Joined
-
Last visited
Posts posted by Manaus
-
-
Solved using
$path = $this->config->paths->files . $page->id . '/';
instead of
$path = $this->config->paths->root . $this->config->urls->files . $page->id . '/';
Ok. Now how do I code the links to files? ...
Using /downloads/{$thepage->dg_downloadhash}/ returns me a 404...
Thanks!
-
Getting closer..
At line 198 of DownloadGuard.module I added this line:
$this->message("{$path}.htaccess");
So I get in the messages this awkward line:
/Users/utente/Sites/mysupermegawebsite//mysupermegawebsite/site/assets/files/1079/.htaccess
Path is
$path = $this->config->paths->root . $this->config->urls->files . $page->id . '/';
But I don't know the proper way to edit it...
Thanks!
-
Hello,
mine neither works locally, I get a Could not create .htaccess for myfile_xlsx.zip at the needed location.
I gave 777 to /assets/ but don't know where the .htaccess file needs to be placed.
Config:
Pw 2.7.2
Php 5.4.10
Apache 2.2.3
Thanks!
-
Can't say why, but the downloaded module has weird owner and group, probably the admin, can't say. Wrote to the provider, whose services I am starting to understand less...
-
The salt is the same on both local and remote (I upped the whole bunch)...
-
Ah!
Thats it!
Well forgery is gone, but I cannot login via usual credentials. Should I change pass uploading some temp code?
Setting debug to true I see the error resides in session_start(),
No such file or directory (2) in /var/www/[...]/web/site/modules/AutoFbPost/AutoFbPost.module
Failed to write session data.
-
Thanks BigPoet, put the string in the config, but nope, still alarmed for forgery...
I also deleted an recreated /logs /sessions and /cache, to no avail...
-
Hi,
I downloaded a module (in this case AutoFbPost). After finishing the download I've been logged out, and when I try to log in I get a 'This request was aborted because it appears to be forged.'
I cannot find the module within /site/modules/, where is it?
Thanks!
-
I talked to the hosting provider, he said the settings are ok, and "If you are using Wordpress you can activate the Ftp".
Is there a parallel in the Processwire world? Any suggestion?
Thanks
-
Thanks horst, the owner is Scrooge, the group is McDuck, but the php user is Mickey. I guess I have to tell the provider to change the first?
Thanks
-
Hello, I get destinationPath is not writable (image) when saving a page with an Image on remote host.
This thread advises to put return $this->error($this->destinationPath." is not writable"); on the inputField.module.
I get /site/assets/files/1058/ is not writable as a result. Oddly, the dir is 755.
Phpinfo does not mention safe_mode, save a sql.safe_mode which I don't think fitting.
The website resides under a /test/ directory. Pw version is 2.7.2.
Thanks for any suggestion...
-
Hello,
I noticed that for geting the image right url I have to print two values
<? foreach ($page->children as $child): ?> <img src="<?php echo $child->image->url, $child->image ?>" alt="" /> <? endforeach ?>
Is this the normal usage, or am I skipping some important part?
Thanks!
-
Hello,
browsing through Pw's admin pages on localhost usually has some disadvantages, loading pages or saving values requires 5-15 seconds each.
Doing the same on the remote server is much faster, 2-3 seconds.
I'm asking if there is some catch for fixing config or something...
I'm using MAMP with php 5.4.10
Thanks!
-
A client of mine asked me if there exists a service like wordpress.com for processwire, where the host takes care of patches, updates and security.
Thanks
-
Hello,
I have a files repeater, containing two fields: file and counter. Sill I cannot access many values in the field, save url.
The structure is thus:
files [repeater]
file [field]
description [text]
counter[field]
I'd like to make the file downloadable, and display the description associated with it.
Many thanks!
-
-
Thank you very much Sérgio for your suggestion.
I'm half done: how do I display the small part of text, usually a paragraph, surrounding the searched term? Is it built in, or I have to make a js/php function etc?
-
Hello,
I need to display the small chunks of text where the searched term resides, generally in the body of the article, like I am doing in this paragraph, so to speak
And I don't have a clue
Thanks!
-
Hi, I need to export from a Joomla website some pages/articles, and move them to Processwire. A bit of tweaking (creating parents, batch adding categories) is allowed. Any suggestion on what way worth taking?
Thank you very much
-
Got it, it was echo $page->render()
-
1
-
-
Hello,
I have a page with children pages. Pages have parent.php and child.php as template files. I'd like to use child template in parent page to render the content, I tried
foreach ($children as $child): $child->render(); endforeach;
but it did not work.
Tried also
foreach ($children as $child): include 'child.php'; endforeach;
without appreciable results.
Thanks for any suggestion!
-
No it does not unzip.
Curious it is working on the production server...
-
Both at 32mb...
Trying with a smaller size file (2mb) I get a note "Pagefiles: Removed 'file' temp file(s) for page /mypage/mysubpage/ - archive.zip"
Thanks
-
Hi LostKobrakai,
that's unlikely, the uploads happen on localhost...
$user->of() error
in Getting Started
Posted
Hello, I need to change $user's data on form submission, this is the code:
But I get an error:
Call $page->setOutputFormatting(false) before getting/setting values that will be modified and saved.
Can't get the source of the error.
Thanks for any suggestion