Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
[ESPRESSO_EVENT] Generates invalid code. Where can I make the fix? | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium [ESPRESSO_EVENT] Generates invalid code. Where can I make the fix?

[ESPRESSO_EVENT] Generates invalid code. Where can I make the fix?

Posted: July 24, 2012 at 1:44 pm

Viewing 6 reply threads


Patty Warwick

July 24, 2012 at 1:44 pm

When I use the short code

The output of the code is :

    Office Ma,e
    My venue content
    717 Forest Ave200NLake ForestIL60045United States
    <a href="http://maps.google.com/maps?q=717+Forest+Ave%2CLake+Forest%2CIL%2C60045%2CUnited+States">Map and Directions</a>
    Website: <a href="www.website.com">www.usmagroup.com</a>Phone: 12341231213
    &lt;p class=&quot;map_image_wrapper&quot;<a href="http://maps.google.com/maps?q=717+Forest+Ave%2CLake+Forest%2CIL%2C60045%2CUnited+States">
    </a>

If you notice on line 7, the shortcode produces this line:

<p class="map_image_wrapper"

The p tag doesn’t get closed, thus causing the site to break.

Which file do I need to edit to fix this?

Thank you very much,

Vlad

  • This topic was modified 12 years, 7 months ago by Patty Warwick.


Josh

July 24, 2012 at 1:57 pm

Which version number of Event Espresso, Vlad?


Patty Warwick

July 24, 2012 at 3:17 pm

Josh,

I am using version 3.1.25.P


Josh

July 24, 2012 at 5:40 pm

Can you try reposting the shortcode you have set up? It got eaten by the forum software.


Patty Warwick

July 25, 2012 at 8:57 am

Here is the screenshot of the shortcode:

http://cl.ly/image/0E2E1q1m1e0A

  • This reply was modified 12 years, 7 months ago by Patty Warwick.
  • This reply was modified 12 years, 7 months ago by Patty Warwick.


Josh

July 25, 2012 at 11:33 am

Open up /includes/shortcodes.php and change line 703 to read:

$map_image_wrapper_class = isset($map_image_wrapper_class) ? 'class="' . $map_image_wrapper_class . '">' : 'class="map_image_wrapper">';

I’m curious though, which browser was this tested on? Usually there’s a bit of fault tolerance on the browser’s part where a missing > will not break a layout.


Patty Warwick

July 25, 2012 at 1:22 pm

I’m cross browser testing. I want to make sure that even if the browser tolerates it, it still correct and passes the validity test.

Thanks a lot for your help, Josh!

Viewing 6 reply threads

The support post ‘[ESPRESSO_EVENT] Generates invalid code. Where can I make the fix?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso - Staging Server