poslundc
Member
Posted 2 years ago #
In my General Settings, I have my WordPress Address as http://blog.danposluns.com/wordpress and my Blog Address as http://blog.danposluns.com.
It seems the result of this is that none of the admin links work correctly on the mobile version of the site, and I am infinitely redirected to the login page as all links point to http://blog.danposluns.com/wp-admin (incorrect) instead of http://blog.danposluns.com/wordpress/wp-admin (correct).
How can I fix this?
Thanks,
Dan.
AndreaTrasatti
Member
Posted 2 years ago #
Hi,
I just visited your blog and when I try to visit /wordpress I get a "page not found" error.
Why do you have that setting? Why aren't both addresses to the homepage?
poslundc
Member
Posted 2 years ago #
I didn't want WordPress installed in the root directory of my website. I followed the instructions here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
As I understand it, URL links are meant to be constructed using form_option('siteurl') as the prefix instead of hard-coding it, in order to ensure they are pointing to the correct directory. I tried having a look at the WordPress Mobile Pack code to see if I could fix this myself, but it was a bit too overwhelming for me.
Dan.
poslundc
Member
Posted 2 years ago #
poslundc
Member
Posted 1 year ago #
Bump... this is still broken in the most recent release.
Niklaus S.
Member
Posted 1 year ago #
The image encoder is affected as well.
To fix the image encoder, replace "get_option('home')" with "get_option('siteurl')" in wpmp_transcoder.php
Gilligan
Member
Posted 1 year ago #
@poslundc, quick fix for your admin pages:
mobile_admin.php
line 35
change to
header("Location: $base/wp-login.php?redirect_to=" . urlencode($base) . "%2Fwordpress" . "%2Fwp-admin%2F");
line 185
change to
"<strong><a href='$base/wordpress/wp-admin/post.php?action=edit&post=$post->ID'>" . get_the_title() . "</a></strong>" .
mobile.php
line70
change to
$base = get_option('siteurl');
Gilligan
Member
Posted 1 year ago #
...I'm still tracking down all the spots in mobile_admin where changes need to be made... testing these on the fly... stay tuned... developers may fix this before we do...
Gilligan
Member
Posted 1 year ago #
line 271
line 325
line 432
add wordpress there too
These fixes only apply if you have your install in /wordpress/ subfolder!!!