Opened 22 years ago
Closed 20 years ago
#410 closed defect (bug) (fixed)
post via mail
| Reported by: | davidcrickett | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.2 |
| Component: | Administration | Version: | |
| Severity: | minor | Keywords: | wp-mail has-patch 2nd-opinion |
| Cc: | Focuses: |
Description
If you use this trick, then you don't get the noop error anymore:
To fix, edit wp-includes/class-pop3.php, and change this line:
if($this->RFC1939) {
to this:
if(!$this->RFC1939) {
(add exclamation point).
...but this instead:
Fatal error: Call to undefined function: logio() in /hotel/yoursite/WWW/wp-includes/functions-post.php on line 170
Attachments (2)
Change History (13)
#5
@
21 years ago
- Keywords bg|has-patch bg|2nd-opinion added
These might be helpful modifications to wp-mail, too.
And it would be nice to update wp-mail so that people can use GMail, too. GMail uses POP3-over-SSL, so wp-mail will need to speak SSL.
#8
@
20 years ago
- Keywords has-patch 2nd-opinion added; bg|has-patch bg|2nd-opinion removed
- Milestone → 2.1
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
My "instant-analysis" indicates that the logio calls are from old debug style code. Commenting them out removes the error.
But then I get this:
Database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND category_id = 7' at line 1]
SELECT * FROM robin_post2cat WHERE post_id = AND category_id = 7
$post_ID does not get populated after the wp_insert_post($post_data) call.
I'm not familiar enough with wp_insert_post operation at the moment to work out why. I'll look at it more later.
Update 23-Nov-04:
The second error I got is because wp-mail.php is currently broken and just adds junk to the DB.
Diff uploaded for a quick fix: creates and adds "$post_status" to the array passed to wp_insert_status and adds "$post_ID =" to the wp_insert_post call
Update 24-Nov-04:
New diff uploaded contains:
Fixes from my first diff ($post_ID and $post_status).
Minor fix for correct closure of POP3 object if no mail exists.
Removed the whole $post_categories section at the end as it is already taken care of in wp_insert_post()
edited on: 11-24-04 11:44