daymobrew
Forum Replies Created
-
Here is possible code to use php to create a backup:
https://davidwalsh.name/backup-mysql-database-phpInteresting.
Is this planned for version 5 or a v4 release?I will stick with EM_DISABLE_PERMALINKS = true for now.
Thanks.I have set EM_DISABLE_PERMALINKS to true in wp-config.php. This is the current setting on the live site.
This gives me the ‘ugly’ urls. I want pretty permalinks. How do I achieve that? Can I achieve that on Zeus?
I have been poking around classes/em-permalinks.php and the rewrite_rules row in the wp_options database table.
My events page has a slug of /race-calendar/event-details (it is a sub page of the ‘race-calendar’ page.
The rewrite_rules list has:
s:49:”index.php/race-calendar/event-detail/event/(\d*)$”
s:76:”index.php?pagename=index.php/race-calendar/event-detail&event_id=$matches[1]”This is exactly as I expect after reading line 127 in rewrite_rules_array() in em-permalinks.php but when I try a url of that format e.g.
https://www.irishtriathlon.com/index.php/race-calendar/event-detail/event/31
it goes to
https://www.irishtriathlon.com/index.php/race-calendar/event-detail/
instead of
https://www.irishtriathlon.com/index.php?pagename=index.php/race-calendar/event-detail&event_id=31If I enter the latter url directly it gives a 404, after redirecting to:
https://www.irishtriathlon.com/index.php/race-calendar/event-detail/?pagename=index.php/race-calendar/event-detail&event_id=31Should I move my Events page to the top level?
I have created a fresh install of WordPress 3.2.1 and EM 4.1.2. Using the default theme TwentyEleven. Permalinks set to Month and Name.
https://em.irishtriathlon.com/index.php/events/
Clicking on an event name returns to the events page.
There is no change when I use a rewrite.script file (the Zeus equivalent of a .htaccess file).I have this issue (though without the 404 errors) – single event page does not work.
I am happy to open a new thread if appropriate.Using EM 4.06 with WordPress 3.1.3 on Zeus/4.3 server on Linux. Zeus uses rewrite.script instead of .htaccess.
I have deactivated and reactivated the plugin and refreshed my permalinks (month and name type).My calendar page is:
https://www.irishtriathlon.com/index.php/event-detail/
Individual pages have urls like:
https://www.irishtriathlon.com/index.php/event-detail/event/credit-crunch-half-ironman-distance/
but clicking on them brings me to the calendar page.
I did create a ‘Event’ sub page of the ‘event-detail’ page but still does not work so I have deleted that sub page.Turning on EM_DISABLE_PERMALINKS gives working urls:
https://www.irishtriathlon.com/index.php/event-detail/?event_id=14Forum: Plugins
In reply to: [WP-Ad-Manager] [Plugin: WP-Ad-Manager] Clicks zeroed on page loadI have looked at my home-made administer log file a few times. Sometimes $administer_stats only has one element but can have 7 elements and I even saw impressions being recorded for one ad.
For example, here is the first bit of my log – note that in one instance $administer_stats has 6 elements, one element in the next and then back up to 2 and then 1 and then 7!
Array ( [0] => Array ( [i] => 1 ) [4] => Array ( [i] => 2 ) [1] => Array ( [i] => 2 ) [5] => Array ( [i] => 2 ) [3] => Array ( [i] => 2 ) [6] => Array ( [i] => 1 [c] => 1 ) ) Array ( [6] => Array ( [c] => 1 ) ) Array ( [6] => Array ( [c] => 1 ) [2] => Array ( [c] => 1 ) ) Array ( [14] => Array ( [c] => 1 ) ) Array ( [6] => Array ( [i] => 1 [c] => 1 ) [2] => Array ( [i] => 1 ) [4] => Array ( [i] => 2 ) [5] => Array ( [i] => 2 ) [3] => Array ( [i] => 2 ) [0] => Array ( [i] => 1 ) [1] => Array ( [i] => 1 ) )
Maybe WordPress is caching data from the db and this is messing things up.
Forum: Plugins
In reply to: [WP-Ad-Manager] [Plugin: WP-Ad-Manager] Clicks zeroed on page loadI deactivated the plugin and cleared the wp_postmeta info and then reactivated but no change.
I added some code to administer_do_redirect() to write $administer_stats to a file before doing the redirect. It only records one element for each click e.g.
Array ( [15] => Array ( [c] => 1 ) )
My code is:
$ams_handle = fopen("administer.log", "a"); if ($ams_handle) { fwrite($ams_handle, print_r($administer_stats, TRUE)); fclose($ams_handle); }
Forum: Plugins
In reply to: [WP-Ad-Manager] [Plugin: WP-Ad-Manager] Clicks zeroed on page loadIt’s bizarre – when I look at administer_stats in wp_postmeta, the unserialized data does not have a ‘c’ (clicks) element. It does have the ‘i’ element
When I create my own $administer_stats array, with ‘i’ and ‘c’ elements and update the wp_postmeta entry, it is soon overwritten by the plugin and replaced with an empty value or serialized data that does not have a ‘c’ element.
BTW, the data written by the plugin is:
$stats[$ad_id][i] = 1
for all the active ads. The impressions/clicks are displayed as zero in the WP Ad Manager Content tab.I might simply deactivate the plugin, clear the db of administer data and start again.
Forum: Fixing WordPress
In reply to: How to troubleshoot auto upgrade problems@daisymariposa: Yes
Forum: Fixing WordPress
In reply to: How to troubleshoot auto upgrade problems@root: It does have a css folder:
https://core.svn.www.ads-software.com/tags/3.0.3/wp-admin/css/theme-editor.dev.css@daisymariposa: I got the same error trying 3.0.2 to 3.0.3.
I realise that many/most people will not have problems. I am looking for debugging suggestions.
The “Could not copy file” error is from copy_dir() function in wp-admin/includes/file.php.Forum: Installing WordPress
In reply to: Upgrade from 3.0.2 to 3.0.3 with just the four changed filesThat is what I did to do the upgrade – I just FTP’d those four changed files.
Forum: Fixing WordPress
In reply to: get_the_category returns category for a pagePerfect solution, thank you.
Forum: Plugins
In reply to: [Plugin: WordPress Popular Posts] Summary does not appearAside: I think that do_pattern=1 should be implied when pattern_form is used and excerpt_length=55 (the default) should be implied when {summary} is specified in pattern_form.
Is this possible? (It might require that pattern_form not have a default in wpp_shortcode()).
Also, do you plan to use post-thumbnails for the wpp thumbnail? (or is complicated because you aren’t using a standard loop to get post info)
Forum: Plugins
In reply to: [Plugin: WordPress Popular Posts] Summary does not appearI added
excerpt_length=55
to the page shortcode and{summary}
is now appearing.My page shortcode is now:
[wpp range="all" cats_to_exclude="3,28,25,19" pages=0 order_by="views" wpp_start='<div class="popular-posts">' wpp_end="</div>" stats_comments=0 thumbnail_width=100 thumbnail_height=100 post_start='<div class="popular-post">' post_end="</div>" do_pattern=1 pattern_form="{image}<h2>{title}</h2><p>{summary}</p>" excerpt_length=100]
I added excerpt_length=100 and changed pattern_form to pattern_form=”{image}<h2>{title}</h2><p>{summary}</p>”