Tabs in AJAX mode not call a php page correctly

Discuss everything related to ApPHP Tabs. Any questions related to the ApPHP Tabs developing or using should be posted to this forum.

Moderators: ne_moj, zewa, Milton, vadimako, ne_moj, zewa, Milton, vadimako

lcisetti
Senior
Senior
Posts: 25
Joined: Sep 6th, '10, 21:46

Tabs in AJAX mode not call a php page correctly

Postby lcisetti » Dec 28th, '10, 00:02

Dear Admin, I bought a tabs license yesterday and I have an issue now.

In AJAX mode the tabs call a php page but display this error: Warning: Cannot modify header information - headers already sent by (output started at ...
The called php page must contain a session_start(); function, because there are some $_SESSION variables.

How I can do to resolve this issue?

Thanks in advance.

Regards.
lcisetti.

administrator
Site Admin
Site Admin
Posts: 5988
Joined: Jan 7th, '09, 23:18
Contact:

Re: Tabs in AJAX mode not call a php page correctly

Postby administrator » Dec 30th, '10, 16:04

Simply add this function at top of your page:

Code: Select all

<?php
session_start();

?>

lcisetti
Senior
Senior
Posts: 25
Joined: Sep 6th, '10, 21:46

Re: Tabs in AJAX mode not call a php page correctly

Postby lcisetti » Dec 30th, '10, 22:34

If I add this function the new message will be "A session had already been started - ignoring session_start() ".

Thanks.

Luca

administrator
Site Admin
Site Admin
Posts: 5988
Joined: Jan 7th, '09, 23:18
Contact:

Re: Tabs in AJAX mode not call a php page correctly

Postby administrator » Dec 31st, '10, 08:22

post here the full version of the warning message that you get

lcisetti
Senior
Senior
Posts: 25
Joined: Sep 6th, '10, 21:46

Re: Tabs in AJAX mode not call a php page correctly

Postby lcisetti » Dec 31st, '10, 13:47

this is the message: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\wamp\www\project1\tabs\tabs.class.php:1149)

administrator
Site Admin
Site Admin
Posts: 5988
Joined: Jan 7th, '09, 23:18
Contact:

Re: Tabs in AJAX mode not call a php page correctly

Postby administrator » Jan 8th, '11, 14:15

This message means, that you try to use session_start() after it was already called in tabs.class.php:1149

Harybald
Newbie
Newbie
Posts: 1
Joined: Mar 4th, '15, 05:59

Re: Tabs in AJAX mode not call a php page correctly

Postby Harybald » Mar 4th, '15, 06:00

I don't see anywhere as to how to do this. As I feel that the dropdown boxes on the setup page are not necessary for final output.
I should be able to select which style of tabs I want to use, set the css for those tabs, add tabs and child tabs and that then publish as finished. In other words, have something like a wizard design the output.


Return to “ApPHP Tabs”