BBPress Brittany Vacchiano : Replies Created

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Hostname Change Causes Pictures To Not Display #420358
    Brittany Vacchiano
    Participant

    Copied production DB where connections is working well and imported it into our dev DB (changing the hostname to match the dev environment’s hostname)

    In the entries below you’ll notice there’s a .jpg.jpg file extension in both instances. Even though that’s the case (thought it was weird, but could be because the image got uploaded twice), the links listed in both options entries return proper images.

    I’ve included two entries for each DB.

    DEV – NOT WORKING

    Entry 1

    a:3:{s:5:"entry";a:1:{s:4:"type";s:10:"individual";}s:5:"group";a:1:{s:6:"family";a:0:{}}s:5:"image";a:4:{s:6:"linked";b:1;s:7:"display";b:1;s:4:"name";a:1:{s:8:"original";s:28:"Missing-Equine-Photo.jpg.jpg";}s:4:"meta";a:1:{s:8:"original";a:8:{s:4:"name";s:28:"Missing-Equine-Photo.jpg.jpg";s:4:"path";s:107:"/app/wwwroot/thewire/wp-content/uploads/connections-images/police-equine-teddy/Missing-Equine-Photo.jpg.jpg";s:3:"url";s:127:"http://thewire-dev.subdomainommitted.org/thewire/wp-content/uploads/connections-images/police-equine-teddy/Missing-Equine-Photo.jpg.jpg";s:5:"width";i:200;s:6:"height";i:248;s:4:"size";s:24:"width="200" height="248"";s:4:"mime";s:10:"image/jpeg";s:4:"type";i:2;}}}}
    

    Entry 2

    a:3:{s:5:"entry";a:1:{s:4:"type";s:10:"individual";}s:5:"group";a:1:{s:6:"family";a:0:{}}s:5:"image";a:4:{s:6:"linked";b:1;s:7:"display";b:1;s:4:"name";a:1:{s:8:"original";s:20:"KEARNEY-John.jpg.jpg";}s:4:"meta";a:1:{s:8:"original";a:8:{s:4:"name";s:20:"KEARNEY-John.jpg.jpg";s:4:"path";s:92:"/app/wwwroot/thewire/wp-content/uploads/connections-images/john-kearney/KEARNEY-John.jpg.jpg";s:3:"url";s:112:"http://thewire-dev.subdomainommitted.org/thewire/wp-content/uploads/connections-images/john-kearney/KEARNEY-John.jpg.jpg";s:5:"width";i:200;s:6:"height";i:250;s:4:"size";s:24:"width="200" height="250"";s:4:"mime";s:10:"image/jpeg";s:4:"type";i:2;}}}}
    

    PROD – WORKING

    Entry 1

    a:3:{s:5:"entry";a:1:{s:4:"type";s:10:"individual";}s:5:"group";a:1:{s:6:"family";a:0:{}}s:5:"image";a:4:{s:6:"linked";b:1;s:7:"display";b:1;s:4:"name";a:1:{s:8:"original";s:28:"Missing-Equine-Photo.jpg.jpg";}s:4:"meta";a:1:{s:8:"original";a:8:{s:4:"name";s:28:"Missing-Equine-Photo.jpg.jpg";s:4:"path";s:107:"/app/wwwroot/thewire/wp-content/uploads/connections-images/police-equine-teddy/Missing-Equine-Photo.jpg.jpg";s:3:"url";s:127:"http://thewire.subdomainommitted.org/thewire/wp-content/uploads/connections-images/police-equine-teddy/Missing-Equine-Photo.jpg.jpg";s:5:"width";i:200;s:6:"height";i:248;s:4:"size";s:24:"width="200" height="248"";s:4:"mime";s:10:"image/jpeg";s:4:"type";i:2;}}}}
    

    Entry 2

    a:3:{s:5:"entry";a:1:{s:4:"type";s:10:"individual";}s:5:"group";a:1:{s:6:"family";a:0:{}}s:5:"image";a:4:{s:6:"linked";b:1;s:7:"display";b:1;s:4:"name";a:1:{s:8:"original";s:20:"KEARNEY-John.jpg.jpg";}s:4:"meta";a:1:{s:8:"original";a:8:{s:4:"name";s:20:"KEARNEY-John.jpg.jpg";s:4:"path";s:92:"/app/wwwroot/thewire/wp-content/uploads/connections-images/john-kearney/KEARNEY-John.jpg.jpg";s:3:"url";s:112:"http://thewire.subdomainommitted.org/thewire/wp-content/uploads/connections-images/john-kearney/KEARNEY-John.jpg.jpg";s:5:"width";i:200;s:6:"height";i:250;s:4:"size";s:24:"width="200" height="250"";s:4:"mime";s:10:"image/jpeg";s:4:"type";i:2;}}}}
    
    in reply to: Hostname Change Causes Pictures To Not Display #420336
    Brittany Vacchiano
    Participant
    This reply has been marked as private.
    in reply to: Hostname Change Causes Pictures To Not Display #420316
    Brittany Vacchiano
    Participant

    Hey Steven –

    Unfortunately my website is an internal website for a company that I work for, not available on the public web. For that reason, I cannot give remote access to my website.

    I did some hardcore digging into your plugin last night.

    It appears as though the CN_IMAGE_PATH contains the correct hostname & the CN_IMAGE_BASE_URL is also correct. $this->getImageNameOriginal() (like in line 3978 of class.entry-data.php: https://github.com/Connections-Business-Directory/Connections/blob/develop/includes/entry/class.entry-data.php#L3978) does not return a string for each of my cnEntrys. This is because each cnEntry no longer has an ['image'] attribute and image meta (this, of course, happened after changing my hostname). Therefore, when the getImageNameOrginal() function is called, an empty string is returned. Thus, when the getOriginalImagePath($type) (in class.entry-data.php) function is called, an empty string is returned because no files can be found at the path for the entry.

    Is there a function that I can use to automatically associate each entry with an image in the /connections-images/ directory so I do not have to re-upload (maybe a filter or hook)? My /connections-images/ folder is still in tact.

    Thanks

    in reply to: Hostname Change Causes Pictures To Not Display #420226
    Brittany Vacchiano
    Participant

    No errors are displayed on the Manage page in Connections or on the Connections Dashboard

    in reply to: Hostname Change Causes Pictures To Not Display #420224
    Brittany Vacchiano
    Participant

    They do not display on the site’s frontend.

    When I edit a preexisting entry that had an image previously, I noticed that both the image is not displaying and the “Publish” setting is not persisted (IE — no radio button is checked on the Edit Entry page under “Publish”).

    Checked the server and the connections-images folder still exists in the uploads folder, with rwxrwxrwx(777) rights. Images still remain in each subdirectory (with folder names as slugs relating to connections entries).

    in reply to: Add Columns to Manage Page #390257
    Brittany Vacchiano
    Participant

    Okay – sounds good. I’ll keep an eye out during the next few plugin updates in case the manage.php file gets updated.

    Thanks!

    in reply to: Stop Search From Splitting Multi-Word String #389967
    Brittany Vacchiano
    Participant

    Hi Steven –

    I have implemented the filter you mentioned above & verified that the cn_search_terms filter is returning just the first entry in the terms array.

    However, when $atts['terms'] = $this->parse_search_terms (line 2319 of class.retrieve.php) is ran, an empty array is being returned and, thus, returned no search results.

    After much trial and error, I figured out that you need to return array($terms[0]) instead of $terms[0] in the filter function you listed above. That seemed to do the trick!

    You can mark this as resolved!

Viewing 7 posts - 1 through 7 (of 7 total)