Hi,
I have a strange problem: I moved a site from my testserver (Xammp on Windows) to my live server (Linux with Apache) and made sure all file permissions are correct. Everything works fine except uploading images. What happens is that the progress bar goes up to 100% and then it disappears. The image doesn't get uploaded.
I double checked all permissions with another site running on the same server, but couldn't find any differences. The other site has no problems with uploading.
Any ideas?
/Jasper
- ProcessWire Support Forums
- → Viewing Profile: Topics: formmailer
Community Stats
- Group Members
- Active Posts 245
- Profile Views 1,926
- Member Title Sr. Member
- Age 36 years old
- Birthday June 1, 1976
-
Gender
Male
-
Location
Hudiksvall, Sweden (but originally from The Netherlands)
Topics I've Started
Solved: Uploading images not working
17 November 2012 - 03:42 PM
Adding a second get variable to a URL
24 April 2012 - 07:10 AM
Hi,
I'll try to explain my problem below:
I have an URL like:
http://mysite.com/maps/
This URL can have mulitiple get variables like:
http://mysite.com/maps/?region=1243 and http://mysite.com/maps/?sort=title
Problem is that these can be combined, but this will of course not work when I create a hyperlinks like this:
<a href="?region=1243">Region</a> or <a href="?sort=title">Sort by title</a>.
How can I work around this, so that, when I am on http://mysite.com/maps/?region=1243, I still can click on the sort link in order to get:
http://mysite.com/ma...1243&sort=title
I know the above is written in a confusing way, but I hope you understand.
//Jasper
I'll try to explain my problem below:
I have an URL like:
http://mysite.com/maps/
This URL can have mulitiple get variables like:
http://mysite.com/maps/?region=1243 and http://mysite.com/maps/?sort=title
Problem is that these can be combined, but this will of course not work when I create a hyperlinks like this:
<a href="?region=1243">Region</a> or <a href="?sort=title">Sort by title</a>.
How can I work around this, so that, when I am on http://mysite.com/maps/?region=1243, I still can click on the sort link in order to get:
http://mysite.com/ma...1243&sort=title
I know the above is written in a confusing way, but I hope you understand.
//Jasper
Selector and Page reference field
22 April 2012 - 08:59 AM
Hi,
I need a selector to find pages that are using the template "poi" and that are having a page reference to a page with the title "Zoo".
The page reference field is called poi_type.
How would I do this?
I tried this:
/Jasper
I need a selector to find pages that are using the template "poi" and that are having a page reference to a page with the title "Zoo".
The page reference field is called poi_type.
How would I do this?
I tried this:
$poi = $pages->find(template=poi, poi_type.title='Zoo');But it doesnt work because there is no field poi_type.title.
/Jasper
Getting values from a page reference
22 April 2012 - 01:47 AM
Hi,
I must be missing something very basic here.
I have the following code:
But for some (probably a very good one) reason it doesn't work.
In text:
On the current page I have a Page reference fied called ref_page.
When I echo $ref_page_id after the first line, it contains the page id of the reference page. So far so good.
But the second line doesn't produce the correct result. $ref_page_title says Home.
It works when I write the page id manually, like:
What am I missing?
/Jasper
Edit: it does work when I add a second page to the page reference field.
I must be missing something very basic here.
I have the following code:
$ref_page_id = $page->ref_page; $ref_page_title = $pages->get($ref_page_id)->title;
But for some (probably a very good one) reason it doesn't work.
In text:
On the current page I have a Page reference fied called ref_page.
When I echo $ref_page_id after the first line, it contains the page id of the reference page. So far so good.
But the second line doesn't produce the correct result. $ref_page_title says Home.
It works when I write the page id manually, like:
$ref_page_title = $pages->get(1243)->title;
What am I missing?
/Jasper
Edit: it does work when I add a second page to the page reference field.
Modules CSS listed in $config->styles (frontend)
18 April 2012 - 06:25 AM
Hi!
I'd like to make it a little bit easier to add custom stylesheets and scripts that are only required for specific templates.
All my template call main.php, which contains 99% of the markup.
In my main.php I added the following code:
Everything is working, but for some reason the ProcessRedirects.css of Apeisa's great ProcessRedirects module gets also loaded. This isn't a big issue, but I don't understand why this one is listed, while CSS files of other modules are not. Can someone explain this?
/Jasper
I'd like to make it a little bit easier to add custom stylesheets and scripts that are only required for specific templates.
All my template call main.php, which contains 99% of the markup.
In my main.php I added the following code:
<?
/*Load required scripts and style sheets*/
$config->scripts->prepend("https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js");
$config->scripts->add($config->urls->templates . "scripts/all-js-min.js");
$config->styles->prepend($config->urls->templates . "styles/main-min.css");
$config->styles->add($config->urls->templates . "styles/jquery.fancybox-min.css");
?>
<?
foreach($config->scripts->unique() as $file) echo "\n\t<script type='text/javascript' src='$file'></script>";
foreach($config->styles->unique() as $file) echo "\n\t<link type='text/css' href='$file' rel='stylesheet' />";
?>
Everything is working, but for some reason the ProcessRedirects.css of Apeisa's great ProcessRedirects module gets also loaded. This isn't a big issue, but I don't understand why this one is listed, while CSS files of other modules are not. Can someone explain this?
/Jasper
- ProcessWire Support Forums
- → Viewing Profile: Topics: formmailer
- Privacy Policy





Find content